Documentation
¶
Index ¶
- func GetInt32SliceFromJSON(str string) []int32
- func GetIntSliceFromJSON[T int | int8 | int32 | int64](str string) []T
- func GetMapFromJSON[T int | int32 | int64](str string, res *map[T]T)
- func ToJSONBytes(v interface{}) []byte
- func ToJSONString(v interface{}) string
- func UnmarshalFromJSON(src string, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInt32SliceFromJSON ¶
func ToJSONBytes ¶
func ToJSONBytes(v interface{}) []byte
ToJSONBytes marshals v as JSON and panics on a marshal error.
func ToJSONString ¶
func ToJSONString(v interface{}) string
ToJSONString marshals v as JSON, returning an empty string for nil. A marshal error panics, matching the existing JSON helpers.
func UnmarshalFromJSON ¶
func UnmarshalFromJSON(src string, data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.