Documentation
¶
Overview ¶
Package toml implements a TOML Marshaler.
Index ¶
- type Toml
- func (t *Toml) ContentTypes() []string
- func (t *Toml) Exts() []string
- func (t *Toml) Marshal(v any) ([]byte, error)
- func (t *Toml) Marshals(v any) bool
- func (t *Toml) Name() string
- func (t *Toml) NewDecoder(r io.Reader) codecs.Decoder
- func (t *Toml) NewEncoder(w io.Writer) codecs.Encoder
- func (t *Toml) Unmarshal(data []byte, v any) error
- func (t *Toml) Unmarshals(v any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Toml ¶
type Toml struct{}
Toml implements the codecs.Marshaler interface. It can be used to encode/decode toml files, or web requests.
func (*Toml) ContentTypes ¶
ContentTypes returns the content types the marshaller can handle.
func (*Toml) NewDecoder ¶
NewDecoder returns a Decoder which reads byte sequence from "r".
func (*Toml) NewEncoder ¶
NewEncoder returns an Encoder which writes bytes sequence into "w".
func (*Toml) Unmarshals ¶
Unmarshals returns if this codec is able to decode the given type.
Click to show internal directories.
Click to hide internal directories.