mirror of
https://github.com/rclone/rclone.git
synced 2024-12-04 22:34:48 +01:00
23 lines
333 B
Go
23 lines
333 B
Go
|
// +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)
|
||
|
}
|
||
|
}
|