github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/clients/pkg/promtail/server/ui/assets_generate.go (about) 1 //go:build ignore 2 // +build ignore 3 4 package main 5 6 import ( 7 "log" 8 "time" 9 10 "github.com/prometheus/alertmanager/pkg/modtimevfs" 11 "github.com/shurcooL/vfsgen" 12 13 "github.com/grafana/loki/clients/pkg/promtail/server/ui" 14 ) 15 16 func main() { 17 fs := modtimevfs.New(ui.Assets, time.Unix(1, 0)) 18 err := vfsgen.Generate(fs, vfsgen.Options{ 19 PackageName: "ui", 20 BuildTags: "!dev", 21 VariableName: "Assets", 22 }) 23 if err != nil { 24 log.Fatalln(err) 25 } 26 }