Documentation
¶
Index ¶
- func Bytes(value any) ([]byte, error)
- func Decode(dec Decoder, target any) error
- func Encode(enc Encoder, value any) error
- func Parse[T any](data []byte) (T, error)
- func ParseInto(data []byte, target any) error
- func ParseString[T any](data string) (T, error)
- func ParseStringInto(data string, target any) error
- func Pretty(s string) string
- func PrettyBytes(value any) ([]byte, error)
- func Read[T any](reader io.Reader) (T, error)
- func ReadInto(reader io.Reader, target any) error
- func Write(writer io.Writer, value any) error
- func WriteOutput(v any) error
- type Decoder
- type Encoder
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseString ¶ added in v0.1.12
func ParseStringInto ¶ added in v0.9.0
func PrettyBytes ¶ added in v0.9.0
func WriteOutput ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func WithIndent ¶
func WithPrefix ¶
Click to show internal directories.
Click to hide internal directories.