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 ¶ added in v3.36.0
func ReplaceVarsWithExtra ¶ added in v3.36.0
func ReplaceWithExtra ¶ added in v3.36.0
func ResolveRef ¶ added in v3.37.0
Types ¶
type Cache ¶ added in v3.36.0
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 ¶ added in v3.36.0
func (r *Cache) ResetCache()
Click to show internal directories.
Click to hide internal directories.