using glide

This commit is contained in:
fatedier
2017-11-01 16:21:57 +08:00
parent ad858a0d32
commit 0f1005ff61
1073 changed files with 293160 additions and 171 deletions

11
vendor/github.com/rakyll/statik/example/README.md generated vendored Normal file
View File

@@ -0,0 +1,11 @@
# How to run?
Run statik on the root of this example project to generate source code with directory contents.
$ statik
Once the <projectPath>/statik package is generated, run the web server:
$ go run main.go
Visit [http://localhost:8080/public/hello.txt](http://localhost:8080/public/hello.txt) to see the file.

22
vendor/github.com/rakyll/statik/example/main.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"log"
"net/http"
_ "github.com/rakyll/statik/example/statik"
"github.com/rakyll/statik/fs"
)
// Before buildling, run `statik -src=./public`
// to generate the statik package.
// Then, run the main program and visit http://localhost:8080/public/hello.txt
func main() {
statikFS, err := fs.New()
if err != nil {
log.Fatalf(err.Error())
}
http.Handle("/public/", http.StripPrefix("/public/", http.FileServer(statikFS)))
http.ListenAndServe(":8080", nil)
}

View File

@@ -0,0 +1,2 @@
Hello World

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB