Documentation
¶
Index ¶
- func Decode(dec Decoder, target any) error
- func DecodeRead[T any](reader io.Reader, sample T) (T, error)
- func Encode(enc Encoder, value any) error
- func Marshal(value any) ([]byte, error)
- func MarshalPretty(value any) ([]byte, error)
- func MarshalWrite(writer io.Writer, value any) error
- func Unmarshal(data []byte, target any) error
- func UnmarshalRead(reader io.Reader, target any) error
- type Decoder
- type Encoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPretty ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func WithDeterministic ¶
func WithIndent ¶
func WithPrefix ¶
Click to show internal directories.
Click to hide internal directories.