https://github.com/deanpdx/go-http-static-example
A quick example for serving up static content using http.ServeFile
https://github.com/deanpdx/go-http-static-example
golang http
Last synced: 9 months ago
JSON representation
A quick example for serving up static content using http.ServeFile
- Host: GitHub
- URL: https://github.com/deanpdx/go-http-static-example
- Owner: DeanPDX
- License: mit
- Created: 2019-06-02T19:45:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T20:05:26.000Z (almost 7 years ago)
- Last Synced: 2023-03-01T19:11:51.917Z (about 3 years ago)
- Topics: golang, http
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-http-static-example
A quick example for serving up static content using `http.ServeFile` for [this blog post](http://www.deanpdx.com/2019/06/02/sending-files-using-golang-net-http.html). To run this yourself, clone the repository, then `go run main.go` and open your browser to `http://localhost:4300/files/good.txt`.