...

Source file src/github.com/linkerd/linkerd2/viz/static/generate.go

Documentation: github.com/linkerd/linkerd2/viz/static

     1  //go:build ignore
     2  
     3  package main
     4  
     5  import (
     6  	"github.com/linkerd/linkerd2/viz/static"
     7  	"github.com/shurcooL/vfsgen"
     8  	log "github.com/sirupsen/logrus"
     9  )
    10  
    11  func main() {
    12  	err := vfsgen.Generate(static.Templates, vfsgen.Options{
    13  		Filename:     "generated_viz_templates.gogen.go",
    14  		PackageName:  "static",
    15  		BuildTags:    "prod",
    16  		VariableName: "Templates",
    17  	})
    18  	if err != nil {
    19  		log.Fatalln(err)
    20  	}
    21  }
    22  

View as plain text