Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2023 Changes in this version + var Funcs = template.FuncMap + func Camel(s string) string + func CatchGraphError(err *error) + func CheckDir(dir string) error + func CheckGraphError(err error, msg string, args ...any) + func EscapePathElements(path string) string + func Expect(cond bool, msg string, args ...any) + func HasField(v any, name string) bool + func InStrSlice(haystack []string, needle string) bool + func IsBuildError(err error) bool + func Join(a []string, sep string) string + func JoinQuote(a []string, sep string) string + func NormalizePkg(pkg string) (nlpkg string, err error) + func ParseT(path string, templates embed.FS, funcs template.FuncMap) *gen.Template + func Pascal(s string) string + func Quote(v any) any + func Snake(s string) string + type Assets struct + func (a *Assets) Add(path string, content []byte) + func (a *Assets) AddDir(path string) + func (a Assets) Format() error + func (a Assets) ModTidy(root string) error + func (a Assets) Write() error + type GraphError struct + func (p GraphError) Error() string + type Template struct + FuncMap template.FuncMap + func MustParse(t *Template, err error) *Template + func NewTemplate(name string) *Template + func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) + func (t *Template) Funcs(funcMap template.FuncMap) *Template + func (t *Template) Parse(text string) (*Template, error) + func (t *Template) ParseDir(path string) (*Template, error) + func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func (t *Template) ParseFiles(filenames ...string) (*Template, error) + func (t *Template) ParseGlob(pattern string) (*Template, error)