A quick example for serving up static content using http.ServeFile
for this blog post. To run this yourself, clone the repository, then go run main.go
and open your browser to http://localhost:4300/files/good.txt
.
deanpdx / go-http-static-example Goto Github PK
View Code? Open in Web Editor NEWA quick example for serving up static content using http.ServeFile
License: MIT License