Documentation ¶
Index ¶
- func ContextWalk(context *types.XObject, callback func(types.XValue))
- func ContextWalkObjects(context *types.XObject, callback func(*types.XObject))
- func FindContextRefsInTemplate(template string, allowedTopLevels []string, callback func([]string)) error
- func RefactorTemplate(template string, allowedTopLevels []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWalk ¶
ContextWalk traverses the given context invoking the callback for each non-nil value
func ContextWalkObjects ¶
ContextWalkObjects traverses the given context invoking the callback for each object found
func FindContextRefsInTemplate ¶
func FindContextRefsInTemplate(template string, allowedTopLevels []string, callback func([]string)) error
FindContextRefsInTemplate audits context references in the given template. Note that the case of the found references is preserved as these may be significant, e.g. ["X"] vs ["x"] in JSON
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.