Documentation ¶
Index ¶
- func Byte2JsonPretty(b []byte) string
- func Check(self any, key string, exp any) bool
- func Decode2Stru(some, out any) error
- func Decode2StruList(some, out any) error
- func FromJson(str string, obj any) error
- func FromJsonByte(inbyte []byte, obj any) error
- func FromJsonStr(param []byte) any
- func JsonFromStr(v string) string
- func MapFromJson(param string) (m *map[string]any, err error)
- func Parse2Map(src string) (map[string]any, error)
- func ParseArray2Map(stru []any) (any, error)
- func Str2JsonPretty(txt string) string
- func Stru2Map(stru any) map[string]any
- func Stru2MapExclude(stru any, excludeFields ...string) map[string]any
- func ToJson(v any) (string, error)
- func ToJsonBytes(v any) ([]byte, error)
- func ToJsonPretty(v any) string
- func ToJsonStr(v any) string
- type JsonUtils
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonUtils ¶
type JsonUtils struct { }
Click to show internal directories.
Click to hide internal directories.