Skip to content
A quick example for serving up static content using http.ServeFile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
.gitignore
LICENSE
README.md
main.go

README.md

go-http-static-example

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.

You can’t perform that action at this time.