assets

package
v0.0.0-...-77af6d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TemplatePath = "/templates"

Variables

View Source
var AssetFiles = assets.NewFileSystem(map[string][]string{"/": []string{"templates"}, "/templates": []string{"transform.go.tmpl", "router.go.tmpl", "main.go.tmpl", "go.mod.tmpl", "app.yaml.tmpl", "go.sum"}}, map[string]*assets.File{
	"/templates/go.mod.tmpl": &assets.File{
		Path:     "/templates/go.mod.tmpl",
		FileMode: 0x1a4,
		Mtime:    time.Unix(1641164600, 1641164600688427300),
		Data:     []byte(_AssetFilesa63462477b679f62a1b5996015cb9741bd4a126b),
	}, "/templates/app.yaml.tmpl": &assets.File{
		Path:     "/templates/app.yaml.tmpl",
		FileMode: 0x1a4,
		Mtime:    time.Unix(1641169044, 1641169044617000000),
		Data:     []byte(_AssetFiles66179fd3f41ff75583c039352f246b25cbf76ae2),
	}, "/templates/go.sum": &assets.File{
		Path:     "/templates/go.sum",
		FileMode: 0x1a4,
		Mtime:    time.Unix(1641165314, 1641165314952000000),
		Data:     []byte(_AssetFiles77d92646711ea780d561b03eca99f41bd8377c35),
	}, "/": &assets.File{
		Path:     "/",
		FileMode: 0x800001ed,
		Mtime:    time.Unix(1641194132, 1641194132008427300),
		Data:     nil,
	}, "/templates": &assets.File{
		Path:     "/templates",
		FileMode: 0x800001ed,
		Mtime:    time.Unix(1641169044, 1641169044608427300),
		Data:     nil,
	}, "/templates/transform.go.tmpl": &assets.File{
		Path:     "/templates/transform.go.tmpl",
		FileMode: 0x1ed,
		Mtime:    time.Unix(1641165082, 1641165082038427300),
		Data:     []byte(_AssetFiles9bf78cc4c5207582e4f00d8dee38ef5bd775baae),
	}, "/templates/router.go.tmpl": &assets.File{
		Path:     "/templates/router.go.tmpl",
		FileMode: 0x1a4,
		Mtime:    time.Unix(1641165065, 1641165065568427300),
		Data:     []byte(_AssetFilesfcf621875c5f7ca89a3ea0157e685819ec5b7a45),
	}, "/templates/main.go.tmpl": &assets.File{
		Path:     "/templates/main.go.tmpl",
		FileMode: 0x1a4,
		Mtime:    time.Unix(1641155433, 1641155433174000000),
		Data:     []byte(_AssetFiles75fd09ca72e7afa573a17ae46afb2edda6310d4d),
	}}, "")

AssetFiles returns go-assets FileSystem

Functions

func JoinTemplatePath

func JoinTemplatePath(fileName string) string

Types

type Assets

type Assets struct {
	FileName string
	OutPath  string
	FuncMap  *template.FuncMap
	Data     interface{}
}

func (*Assets) Generate

func (t *Assets) Generate() error

func (*Assets) GenerateTemplate

func (t *Assets) GenerateTemplate(templData []byte) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL