Documentation ¶
Index ¶
- Constants
- func DecodeJSONP(str []byte) []byte
- func Marshal(v interface{}) ([]byte, error)
- func MustMarshal(v interface{}) []byte
- func MustUnmarshal(data []byte, v interface{})
- func PrettyMarshal(v interface{}) []byte
- func PrettyMarshalWithIndent(v interface{}) []byte
- func Unmarshal(data []byte, v interface{}) error
- func UnsafeMarshal(v interface{}) []byte
- func UnsafeMarshalIndent(v interface{}) []byte
- func UnsafeMarshalString(v interface{}) string
- type Date
- type DateTime
- type RawMessage
- type Time
Constants ¶
View Source
const ( DateTimeLayout = "2006-01-02 15:04:05" DateLayout = "2006-01-02" TimeLayout = "15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func MustUnmarshal ¶
func MustUnmarshal(data []byte, v interface{})
MustUnmarshal must unmarshal successful
func PrettyMarshalWithIndent ¶
func PrettyMarshalWithIndent(v interface{}) []byte
PrettyMarshalWithIndent colorful json
func UnsafeMarshalIndent ¶
func UnsafeMarshalIndent(v interface{}) []byte
UnsafeMarshalIndent marshal without error
func UnsafeMarshalString ¶
func UnsafeMarshalString(v interface{}) string
UnsafeMarshalString marshal without error
Types ¶
type RawMessage ¶
type RawMessage = sysjson.RawMessage
Click to show internal directories.
Click to hide internal directories.