rclone/cmd/serve/http/data/assets_generate.go

24 lines
351 B
Go
Raw Normal View History

2021-09-09 20:25:25 +08:00
//go:build ignore
2018-12-23 08:16:50 +08:00
// +build ignore
package main
import (
"log"
"net/http"
"github.com/shurcooL/vfsgen"
)
func main() {
var AssetDir http.FileSystem = http.Dir("./templates")
err := vfsgen.Generate(AssetDir, vfsgen.Options{
PackageName: "data",
BuildTags: "!dev",
VariableName: "Assets",
})
if err != nil {
log.Fatalln(err)
}
}