Documentation
¶
Index ¶
- func ByteToStr(b []byte) string
- func CallMethod(v interface{}, methodName string) (interface{}, bool)
- func Interpret(a interface{}) interface{}
- func IsStrType(v interface{}) (bool, string)
- func JsonChecker(v interface{}) (bool, string)
- func JsonDumps(m interface{}) (string, error)
- func JsonLoadsList(jsonStr string) ([]interface{}, error)
- func JsonLoadsMap(jsonStr string) (map[string]interface{}, error)
- func JsonLoadsObj(jsonStr string, o interface{}) (interface{}, error)
- func JsonUnmarshalObj(jsonStr string, o interface{}) (interface{}, error)
- func StrToByte(s string) (b []byte)
- func ToStr(v interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallMethod ¶
func JsonChecker ¶
StrChecker 判断v是不是一个字符串类型,首先判断是否为字符串,其次判断是否为json
func JsonLoadsMap ¶
JsonLoadsMap Tip: map类型的json key必须是字符串;
func JsonLoadsObj ¶
JsonLoadsObj 注:o必须是对象的指针
func JsonUnmarshalObj ¶
JsonUnmarshalObj 注:o必须是对象的指针
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.