Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustJsonBytes ¶ added in v0.0.12
func MustJsonBytes(data interface{}) []byte
将结构类型值转为json字符串,如果data不满足 json.Marshal 的转换要求将会发生异常 使用tag: (omitempty) 来标记可省略的空字段
func MustJsonReader ¶ added in v0.0.12
func MustJsonString ¶
func MustJsonString(data interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.