Discover Packages
cuelang.org/go
internal
third_party
yaml
package
Version:
v0.8.0-alpha.4
Opens a new window with list of versions in this module.
Published: Feb 29, 2024
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
YAML reader for CUE
This yaml parser is a heavily modified version of Canonical's go-yaml parser,
which in turn is a port of the libyaml parser.
License
The yaml package is licensed under the Apache License 2.0. Please see the LICENSE file for details.
Expand ▾
Collapse ▴
Documentation
¶
Package yaml implements YAML support for the Go language.
Source code and other details for the project are available at GitHub:
https://github.com/go-yaml/yaml
Unmarshal decodes the first document found within the in byte slice
and returns it as a CUE syntax AST.
A Decoder reads and decodes YAML values from an input stream.
NewDecoder returns a new decoder that reads from r.
The decoder introduces its own buffering and may read
data from r beyond the YAML values requested.
Decode reads the next YAML-encoded value from its input and returns
it as CUE syntax. It returns io.EOF if there are no more value in the
stream.
type TypeError struct {
Errors []string
}
A TypeError is returned by Unmarshal when one or more fields in
the YAML document cannot be properly decoded into the requested
types. When this error is returned, the value is still
unmarshaled partially.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.