|
|
%!s(int64=8) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| public | %!s(int64=8) %!d(string=hai) anos | |
| README.md | %!s(int64=8) %!d(string=hai) anos | |
| main.go | %!s(int64=8) %!d(string=hai) anos | |
Run statik on the root of this example project to generate source code with directory contents.
$ statik
Once the /statik package is generated, run the web server:
$ go run main.go
Visit http://localhost:8080/public/hello.txt to see the file.