toml

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Codec

func Codec[T any, PT *T]() (Decoder[T, PT], Encoder[T, PT])

Types

type Decoder

type Decoder[T any, PT *T] interface {
	Decode(data []byte, obj PT) error
}

type Encoder

type Encoder[T any, PT *T] interface {
	Encode(obj PT) ([]byte, error)
}

Jump to

Keyboard shortcuts

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