Documentation ¶
Overview ¶
Package toml converts TOML to and from CUE.
WARNING: THIS PACKAGE IS EXPERIMENTAL. ITS API MAY CHANGE AT ANY TIME.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder implements the decoding state.
Note that TOML files and streams never decode multiple CUE nodes; subsequent calls to Decoder.Decode may return io.EOF.
func NewDecoder ¶
NewDecoder creates a decoder from a stream of TOML input.
type Encoder ¶ added in v0.10.0
type Encoder struct {
// contains filtered or unexported fields
}
Encoder implements the encoding state.
func NewEncoder ¶ added in v0.10.0
NewEncoder creates an encoder to stream encoded TOML bytes.
Click to show internal directories.
Click to hide internal directories.