package yaml
import "cuelang.org/go/internal/encoding/yaml"
Index ¶
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.
Source Files ¶
encode.go
- Version
- v0.4.2-rc.1
- Published
- Feb 1, 2022
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 1 hour ago –
Tools for package owners.