Documentation
¶
Index ¶
- func AddPathAliases(tmpl *template.Template, names []string) error
- func DefinedTemplates(name, src string) ([]string, error)
- func DefinedTemplatesFromFS(fsys fs.FS, names []string) map[string]struct{}
- func FilterFuncMap(funcs template.FuncMap, required map[string]struct{}) template.FuncMap
- func FunctionNameSignature(funcs template.FuncMap) string
- func FunctionNameSignatureFromNames(names []string) string
- func FunctionNameSignatureFromSet(names map[string]struct{}) string
- func MergeFuncMaps(funcMaps ...template.FuncMap) template.FuncMap
- func MergeFunctionSignatures(signatures ...string) string
- func Names(funcs template.FuncMap) map[string]struct{}
- func NormalizeContractType(typeName string) string
- func PathAliases(name string) []string
- func PathBase(name string) string
- func ReferencedTemplates(name, src string) ([]string, error)
- func ReferencedTemplatesFromFS(fsys fs.FS, names []string) map[string]struct{}
- func RequiredFuncs(name, src string) ([]string, error)
- func RequiredFuncsFromFS(fsys fs.FS, names []string) (map[string]struct{}, error)
- func RootContractsFromFS(fsys fs.FS, names []string) (map[string]RootContract, error)
- type CachedTemplate
- type RootContract
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefinedTemplates ¶
func DefinedTemplatesFromFS ¶
func FilterFuncMap ¶
func FunctionNameSignature ¶
func MergeFunctionSignatures ¶
func NormalizeContractType ¶
func PathAliases ¶
func ReferencedTemplates ¶
func RequiredFuncs ¶
func RequiredFuncsFromFS ¶
func RootContractsFromFS ¶
Types ¶
type CachedTemplate ¶
type CachedTemplate struct {
// contains filtered or unexported fields
}
func NewCachedTemplate ¶
func NewCachedTemplate(base *template.Template, requiredFuncs map[string]struct{}) *CachedTemplate
type RootContract ¶
Click to show internal directories.
Click to hide internal directories.