Documentation ¶
Index ¶
- Variables
- func Bytes(s string) []byte
- func JSON2PB(js string, pb interface{}) error
- func Marshal(v interface{}) ([]byte, error)
- func MarshalToString(v interface{}) (string, error)
- func PB2Json(pb interface{}) []byte
- func PB2String(pb interface{}) string
- func String(b []byte) string
- func UnmarshalFromString(data string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Valid 验证 Valid = json.Valid // Unmarshal 反序列化 Unmarshal = json.Unmarshal // MarshalIndent 带缩进的序列化 MarshalIndent = json.MarshalIndent )
Functions ¶
func MarshalToString ¶
MarshalToString json.MarshalWithOption and return string
func UnmarshalFromString ¶
UnmarshalFromString json.UnmarshalFromString
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.