diff --git a/README.md b/README.md index 81c5eaf..3dc8ea9 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/controler.go b/controler.go index d9223dd..314991f 100644 --- a/controler.go +++ b/controler.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/gin-gonic/gin" - "lan-share/model" + "go-file/model" "net/http" "path/filepath" "time" diff --git a/go.mod b/go.mod index 19039ec..cea2dad 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/main.go b/main.go index bd54aa8..8af6821 100644 --- a/main.go +++ b/main.go @@ -3,8 +3,8 @@ package main import ( "flag" "github.com/gin-gonic/gin" + "go-file/model" "html/template" - "lan-share/model" "log" "os" "strconv" diff --git a/template.go b/template.go index 96c7320..60cd0e6 100644 --- a/template.go +++ b/template.go @@ -6,8 +6,8 @@ var HTMLTemplate = ` - LAN Share - + Go File +