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 Parse[T any](data []byte, sample T) (T, error)
- func ParseString[T any](data string, sample T) (T, error)
- func Unmarshal(data []byte, target any) error
- func UnmarshalRead(reader io.Reader, target any) error
- func UnmarshalString(data string, target any) error
- func WriteOutput(v any) error
- type Decoder
- type Encoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPretty ¶
func ParseString ¶ added in v0.1.12
func UnmarshalString ¶ added in v0.0.31
func WriteOutput ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.