toml

package
v0.0.0-...-54241fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSyntax = errors.New("invalid syntax")
View Source
var ErrPointerRequired = errors.New("decoder expects a pointer value")
View Source
var ErrUnknownType = errors.New("unknown object type")

Functions

func Marshal

func Marshal(val any) ([]byte, error)

func Unmarshal

func Unmarshal(d []byte, val any) error

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(buf io.Reader) *Decoder

func (*Decoder) Decode

func (d *Decoder) Decode(val any) error

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(buf io.Writer) *Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(val any) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL