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.3.1
- Published
- Apr 8, 2021
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 40 minutes ago –
Tools for package owners.