Workaround for assetFS FileInfo
See https://github.com/elazarl/go-bindata-assetfs/pull/55
This commit is contained in:
parent
c0e6ef52ec
commit
abc8ef5818
3 changed files with 17 additions and 9 deletions
10
bindata.go
10
bindata.go
|
|
@ -1,4 +1,12 @@
|
|||
package main
|
||||
|
||||
//go:generate go-bindata-assetfs -mode 0664 -modtime 1 -o ./bindata.generated.go webdata/...
|
||||
//go:generate go-bindata-assetfs -nometadata -o ./bindata.generated.go webdata/...
|
||||
//go:generate gofmt -w ./bindata.generated.go
|
||||
|
||||
import "net/http"
|
||||
|
||||
func fixedAssetFS() http.FileSystem {
|
||||
fs := assetFS()
|
||||
fs.AssetInfo = AssetInfo
|
||||
return fs
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue