Documentation ¶
Index ¶
- func DeepClone[T any](t T) (*T, error)
- func DeepCloneSimilar[T any](t any) (*T, error)
- func Marshal(t interface{}) ([]byte, error)
- func MarshalToFile(t interface{}, file string) error
- func MarshalToJson(t interface{}) (string, error)
- func Unmarshal(j string, t interface{}) error
- func UnmarshalBToT[T interface{}](bytes []byte) (*T, error)
- func UnmarshalFromFile(file string, t interface{}) error
- func UnmarshalFromFileToT[T any](file string) (*T, error)
- func UnmarshalSToT[T interface{}](j string) (*T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCloneSimilar ¶
func MarshalToFile ¶
func MarshalToJson ¶ added in v1.2.0
func UnmarshalBToT ¶
func UnmarshalFromFile ¶
func UnmarshalFromFileToT ¶
func UnmarshalSToT ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.