mirror of
https://github.com/go-shiori/shiori.git
synced 2024-11-14 05:05:27 +08:00
24 lines
331 B
Go
24 lines
331 B
Go
|
// +build ignore
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/shurcooL/vfsgen"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
err := vfsgen.Generate(http.Dir("view"), vfsgen.Options{
|
||
|
Filename: "cmd/serve/assets-prod.go",
|
||
|
PackageName: "serve",
|
||
|
BuildTags: "!dev",
|
||
|
VariableName: "assets",
|
||
|
})
|
||
|
|
||
|
if err != nil {
|
||
|
log.Fatalln(err)
|
||
|
}
|
||
|
}
|