Documentation
¶
Overview ¶
Package vmutil exposes specific functions used in the native implementation of the VM for general purpose use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseYAMLDocuments ¶
ParseYAMLDocuments parses the contents of the reader into an array of objects, one for each non-nil document in the input.
func RenderYAMLDocuments ¶
RenderYAMLDocuments renders the supplied data as a series of YAML documents if the input is an array or a single document when it is not. Nils are excluded from output. If the caller wants an array to be rendered as a single document, they need to wrap it in an array first. Note that this function is not a drop-in replacement for data that requires ghodss/yaml to be rendered correctly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.