dnscontrol/build/generate.go
2017-01-12 07:20:37 -07:00

18 lines
368 B
Go

package main
import (
"github.com/mjibson/esc/embed"
)
func main() {
//go:generate esc -modtime 0 -o js/static.go -pkg js -include helpers\.js -ignore go -prefix js js
conf := &embed.Config{
ModTime: "0",
OutputFile: "js/static.go",
Package: "js",
Prefix: "js",
Private: true,
Files: []string{`js/helpers.js`},
}
embed.Run(conf)
}