mirror of
https://github.com/go-gitea/gitea
synced 2024-11-22 05:01:20 +01:00
b6a95a8cb3
* Dropped unused codekit config * Integrated dynamic and static bindata for public * Ignore public bindata * Add a general generate make task * Integrated flexible public assets into web command * Updated vendoring, added all missiong govendor deps * Made the linter happy with the bindata and dynamic code * Moved public bindata definition to modules directory * Ignoring the new bindata path now * Updated to the new public modules import path * Updated public bindata command and drop the new prefix
13 lines
459 B
Go
13 lines
459 B
Go
// assetfs allows packages to serve static content embedded
|
|
// with the go-bindata tool with the standard net/http package.
|
|
//
|
|
// See https://github.com/jteeuwen/go-bindata for more information
|
|
// about embedding binary data with go-bindata.
|
|
//
|
|
// Usage example, after running
|
|
// $ go-bindata data/...
|
|
// use:
|
|
// http.Handle("/",
|
|
// http.FileServer(
|
|
// &assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, Prefix: "data"}))
|
|
package assetfs
|