jsonkit

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepClone

func DeepClone[T any](t T) (*T, error)

func DeepCloneSimilar

func DeepCloneSimilar[T any](t any) (*T, error)

func Marshal

func Marshal(t interface{}) ([]byte, error)

func MarshalToFile

func MarshalToFile(t interface{}, file string) error

func MarshalToJson added in v1.2.0

func MarshalToJson(t interface{}) (string, error)

func Unmarshal

func Unmarshal(j string, t interface{}) error

func UnmarshalBToT

func UnmarshalBToT[T interface{}](bytes []byte) (*T, error)

func UnmarshalFromFile

func UnmarshalFromFile(file string, t interface{}) error

func UnmarshalFromFileToT

func UnmarshalFromFileToT[T any](file string) (*T, error)

func UnmarshalSToT

func UnmarshalSToT[T interface{}](j string) (*T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL