An open API service indexing awesome lists of open source software.

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

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`.