Documentation ¶
Index ¶
- func Replace[T any](v T, cache *Cache) T
- func ReplaceGlobs(globs []*ast.Glob, cache *Cache) []*ast.Glob
- func ReplaceVar(v ast.Var, cache *Cache) ast.Var
- func ReplaceVarWithExtra(v ast.Var, cache *Cache, extra map[string]any) ast.Var
- func ReplaceVars(vars *ast.Vars, cache *Cache) *ast.Vars
- func ReplaceVarsWithExtra(vars *ast.Vars, cache *Cache, extra map[string]any) *ast.Vars
- func ReplaceWithExtra[T any](v T, cache *Cache, extra map[string]any) T
- func ResolveRef(ref string, cache *Cache) any
- type Cache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceVarWithExtra ¶
func ReplaceVarsWithExtra ¶
func ResolveRef ¶
Types ¶
type Cache ¶
Cache is a help struct that allow us to call "replaceX" funcs multiple times, without having to check for error each time. The first error that happen will be assigned to r.err, and consecutive calls to funcs will just return the zero value.
func (*Cache) ResetCache ¶
func (r *Cache) ResetCache()
Click to show internal directories.
Click to hide internal directories.