mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-15 04:36:19 +08:00
19 lines
368 B
Go
19 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)
|
||
|
}
|