Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Assets = func() http.FileSystem { wd, err := os.Getwd() if err != nil { panic(err) } var assetsPrefix string switch path.Base(wd) { case "prometheus-webhook-dingtalk": assetsPrefix = "./" case "template": assetsPrefix = "../" } templates := filter.Keep( http.Dir(path.Join(assetsPrefix, "template")), func(path string, fi os.FileInfo) bool { return path == "/" || path == "/default.tmpl" }, ) return union.New(map[string]http.FileSystem{ "/templates": templates, }) }()
Assets contains the project's assets.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.