mirror of
https://github.com/hamburghammer/gohttpserver.git
synced 2024-12-22 22:47:41 +01:00
23 lines
316 B
Go
23 lines
316 B
Go
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/shurcooL/vfsgen"
|
|
)
|
|
|
|
func main() {
|
|
var fs http.FileSystem = http.Dir("assets")
|
|
|
|
err := vfsgen.Generate(fs, vfsgen.Options{
|
|
PackageName: "main",
|
|
BuildTags: "vfs",
|
|
VariableName: "Assets",
|
|
})
|
|
if err != nil {
|
|
log.Fatalln(err)
|
|
}
|
|
}
|