Skip to content

Commit

Permalink
🎉 everything is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Feb 8, 2021
1 parent 9b87fcb commit aae2728
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## 使用方法
直接双击即可使用,默认端口为 `3000`,默认的 token(用于删除文件时验证身份)为 `token`

如果需要修改端口,加参数即可:`./lan-share.exe -port 80 -token private`
如果需要修改端口,加参数即可:`./go-file.exe -port 80 -token private`

## 演示
![desktop](https://user-images.githubusercontent.com/39998050/107188251-50aed700-6a22-11eb-9ee9-e8242f1850b8.png)
Expand Down
2 changes: 1 addition & 1 deletion controler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"lan-share/model"
"go-file/model"
"net/http"
"path/filepath"
"time"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module lan-share
module go-file

go 1.13
go 1.15

require (
github.com/gin-gonic/gin v1.6.2
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"flag"
"github.com/gin-gonic/gin"
"go-file/model"
"html/template"
"lan-share/model"
"log"
"os"
"strconv"
Expand Down
4 changes: 2 additions & 2 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ var HTMLTemplate = `
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LAN Share</title>
<meta name="keywords" content="LAN share">
<title>Go File</title>
<meta name="keywords" content="Go File">
<meta name="description" content="LAN file sharing tool website. 局域网文件共享网站">
<meta name="theme-color" content="#3F51B5"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
Expand Down

0 comments on commit aae2728

Please sign in to comment.