Codebase list golang-github-rakyll-statik / d8dcb0fa-4545-4c3b-9b6e-2ca5d60ee43a/upstream example
d8dcb0fa-4545-4c3b-9b6e-2ca5d60ee43a/upstream

Tree @d8dcb0fa-4545-4c3b-9b6e-2ca5d60ee43a/upstream (Download .tar.gz)

# How to run?

Run `go generate` to create a statik package that embeds the binary data underneath the public directory.

	$ go generate

Once the 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.