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.1-beta.2
- Published
- Dec 1, 2021
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 41 seconds ago –
Tools for package owners.