Documentation ¶
Overview ¶
Package debug prints a given ADT node.
Note that the result is not valid CUE, but instead prints the internals of an ADT node in human-readable form. It uses a simple indentation algorithm for improved readability and diffing.
Package debug prints a given ADT node.
Note that the result is not valid CUE, but instead prints the internals of an ADT node in human-readable form. It uses a simple indentation algorithm for improved readability and diffing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendNode ¶ added in v0.9.0
AppendNode writes a string representation of the node to w.
func NodeString ¶
NodeString returns a string representation of the given node. The StringIndexer value i is used to translate elements of n to strings. Commonly available implementations of StringIndexer include *adt.OpContext and *runtime.Runtime.