func Generate(input http.FileSystem, opt Options) error
Generate Go code that statically implements input filesystem, write the output to a file specified in opt.
Options for vfsgen code generation.
type Options struct { // Filename of the generated Go code output (including extension). // If left empty, it defaults to "{{toLower .VariableName}}_vfsdata.go". Filename string // PackageName is the name of the package in the generated code. // If left empty, it defaults to "main". PackageName string // BuildTags are the optional build tags in the generated code. // The build tags syntax is specified by the go tool. BuildTags string // VariableName is the name of the http.FileSystem variable in the generated code. // If left empty, it defaults to "assets". VariableName string // VariableComment is the comment of the http.FileSystem variable in the generated code. // If left empty, it defaults to "{{.VariableName}} statically implements the virtual filesystem provided to vfsgen.". VariableComment string }