Documentation ¶ Index ¶ func UnmarshalTo[T any](o Unmarshaler, a any) (t T, err error) type Compacter type IndentMarshaler type Indenter type Marshaler type Unmarshaler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func UnmarshalTo ¶ func UnmarshalTo[T any](o Unmarshaler, a any) (t T, err error) Types ¶ type Compacter ¶ added in v2.0.15 type Compacter interface { Compact(src []byte) ([]byte, error) CompactString(src string) (string, error) MustCompact(src []byte) []byte MustCompactString(src string) string } type IndentMarshaler ¶ type IndentMarshaler interface { MarshalIndent(v any) ([]byte, error) MarshalIndentString(v any) (string, error) MustMarshalIndent(v any) []byte MustMarshalIndentString(v any) string } type Indenter ¶ added in v2.0.15 type Indenter interface { Indent(src []byte) ([]byte, error) IndentString(src string) (string, error) MustIndent(src []byte) []byte MustIndentString(src string) string } type Marshaler ¶ type Marshaler interface { Marshal(v any) ([]byte, error) MarshalString(v any) (string, error) MustMarshal(v any) []byte MustMarshalString(v any) string } type Unmarshaler ¶ type Unmarshaler interface { Unmarshal(bs []byte, v any) error UnmarshalString(s string, v any) error MustUnmarshal(bs []byte, v any) MustUnmarshalString(s string, v any) } Source Files ¶ View all Source files helper.gointerface.go Directories ¶ Show internal Expand all Path Synopsis json yaml Click to show internal directories. Click to hide internal directories.