package yaml

import "cuelang.org/go/pkg/encoding/yaml"

Index

Functions

func Marshal

func Marshal(v cue.Value) (string, error)

Marshal returns the YAML encoding of v.

func MarshalStream

func MarshalStream(v cue.Value) (string, error)

MarshalStream returns the YAML encoding of v.

func Unmarshal

func Unmarshal(data []byte) (ast.Expr, error)

Unmarshal parses the YAML to a CUE instance.

Source Files

manual.go

Version
v0.0.4-rc1
Published
Jul 1, 2019
Platform
linux/amd64
Imports
5 packages
Last checked
14 minutes ago

Tools for package owners.