Documentation ¶
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func MarshalToBuffer(v interface{}) (*bytes.Buffer, error)
- func MarshalToString(v interface{}) (string, error)
- func ShouldMarshal(v interface{}) []byte
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalFromString(str string, v interface{}) error
- func UnmarshalFromStringV2[T any](str string) (T, error)
- func UnmarshalV2[T any](data []byte) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalIndent ¶
func MarshalToBuffer ¶
func MarshalToString ¶
func ShouldMarshal ¶
func ShouldMarshal(v interface{}) []byte
func UnmarshalFromString ¶
func UnmarshalFromStringV2 ¶
func UnmarshalV2 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.