Update the UX, add documentation.

This commit is contained in:
Brendan Burns
2014-10-07 09:44:22 -07:00
parent 6947331290
commit 414473607a
10 changed files with 2961 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
go-bindata-http
===============
Serve embedded files from [jteeuwen/go-bindata](https://github.com/jteeuwen/go-bindata) with `net/http`.
[GoDoc](http://godoc.org/github.com/elazarl/go-bindata-assetfs)
After running
$ go-bindata data/...
Use
http.Handle("/",
http.FileServer(
&assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, Prefix: "data"}))
to serve files embedded from the `data` directory.