Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMarshal ¶
func MustMarshal(v interface{}) []byte
MustMarshal marshal to json []byte and panic on error
func MustMarshalString ¶ added in v0.3.5
func MustMarshalString(v interface{}) string
MustMarshalString marshal to json string and panic on error
func MustPrettyMarshal ¶
func MustPrettyMarshal(v interface{}) []byte
MustPrettyMarshal marshal to pretty json []byte and panic on error
func MustPrettyMarshalString ¶ added in v0.3.5
func MustPrettyMarshalString(v interface{}) string
MustPrettyMarshalString marshal to pretty json string and panic on error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.