Skip to content

Commit

Permalink
Revert "Merge branch 'master' into dev"
Browse files Browse the repository at this point in the history
This reverts commit 7915b37, reversing
changes made to 1b55b79.
  • Loading branch information
WLaoDuo committed Aug 21, 2024
1 parent 7915b37 commit e89cd35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 42 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ module webdemo

go 1.21.6

require github.com/quic-go/quic-go v0.46.0

require (
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
github.com/onsi/ginkgo/v2 v2.9.5 // indirect
github.com/quic-go/qpack v0.4.0 // indirect
github.com/quic-go/quic-go v0.46.0 // indirect
go.uber.org/mock v0.4.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
Expand Down
38 changes: 0 additions & 38 deletions go.sum

This file was deleted.

5 changes: 2 additions & 3 deletions webdemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ func main() {
var path_show = flag.String("path", ".", "文件路径") //文件加载路径,绝对路径可以,相对路径也可以,但需要注意加引号
var showVersion bool
flag.BoolVar(&showVersion, "version", false, "-version输出版本信息")

flag.Parse()
flag.Parse()

if showVersion {
fmt.Printf("%+v", webdemo.AppInfo)
Expand All @@ -162,7 +161,7 @@ func main() {
log.Println("\033[31m ", *path_show, "\033[0m当前文件(文件夹)路径不存在,请重新输入")
os.Exit(1)
}

fileServer := http.FileServer(http.Dir(*path_show))
authHandler := basicAuth(fileServer, *username, password, *path_show)

Expand Down

0 comments on commit e89cd35

Please sign in to comment.