Documentation ¶
Index ¶
- Constants
- func GopkgMarshal(in any) (out []byte, err error)
- func GopkgUnmarshal(in []byte, out interface{}) (err error)
- func Marshal(in any) (out []byte, err error)
- func Unmarshal(in []byte, out interface{}) (err error)
- type Decoder
- type Encoder
- type EntryUnmarshaler
- type IsZeroer
- type Kind
- type Marshaler
- type Node
- type Style
- type TypeError
- type Unmarshaler
Constants ¶
View Source
const ( NullTag = "!!null" BoolTag = "!!bool" StrTag = "!!str" IntTag = "!!int" FloatTag = "!!float" TimestampTag = "!!timestamp" SeqTag = "!!seq" MapTag = "!!map" BinaryTag = "!!binary" MergeTag = "!!merge" )
View Source
const ( DocumentNode = yaml.DocumentNode SequenceNode = yaml.SequenceNode MappingNode = yaml.MappingNode ScalarNode = yaml.ScalarNode AliasNode = yaml.AliasNode )
View Source
const ( TaggedStyle = yaml.TaggedStyle DoubleQuotedStyle = yaml.DoubleQuotedStyle SingleQuotedStyle = yaml.SingleQuotedStyle LiteralStyle = yaml.LiteralStyle FoldedStyle = yaml.FoldedStyle FlowStyle = yaml.FlowStyle )
Variables ¶
This section is empty.
Functions ¶
func GopkgMarshal ¶
func GopkgUnmarshal ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
A Decoder reads and decodes YAML values from an input stream.
func NewDecoder ¶
func (*Decoder) Decode ¶
Decode reads the next YAML-encoded value from its input and stores it in the value pointed to by v.
See the documentation for Unmarshal for details about the conversion of YAML into a Go value.
func (*Decoder) KnownFields ¶
type EntryUnmarshaler ¶
type Node ¶
type Node yaml.Node
type Unmarshaler ¶
Click to show internal directories.
Click to hide internal directories.