Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode converts a CUE AST to YAML.
The given file must only contain values that can be directly supported by YAML:
Type Restrictions BasicLit File no imports, aliases, or definitions StructLit no embeddings, aliases, or definitions List Field must be regular; label must be a BasicLit or Ident CommentGroup
TODO: support anchors through Ident.
func NewDecoder ¶ added in v0.9.0
NewDecoder creates a decoder for YAML values to extract CUE syntax tree nodes.
The filename is used for position information in CUE syntax tree nodes as well as any errors encountered while decoding YAML.
Types ¶
Click to show internal directories.
Click to hide internal directories.