This commit is contained in:
2024-08-27 15:46:23 +08:00
commit 715eda7c67
70 changed files with 20484 additions and 0 deletions

23
assets_generate.go Normal file
View File

@@ -0,0 +1,23 @@
// +build ignore
package main
import (
"log"
"net/http"
"github.com/shurcooL/vfsgen"
)
func main() {
var fs http.FileSystem = rice.MustFindBox("res").HTTPBox()
err := vfsgen.Generate(fs, vfsgen.Options{
PackageName: "main",
BuildTags: "vfs",
VariableName: "Assets",
})
if err != nil {
log.Fatalln(err)
}
}