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