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.8.0-rc.1
- Published
- Mar 13, 2024
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 1 hour ago –
Tools for package owners.