Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONField ¶
func JSONField(objMap map[string]json.RawMessage, field string, target interface{})
JSONField tries to marshall field from json object - useful for custom unmarshalling (ex. TryUnmarshallField)
func ToRawJSONMap ¶
func ToRawJSONMap(bytes []byte) (result map[string]json.RawMessage, resultErr error)
ToRawJSONMap unmarshal bytes to Raw JSON map
func TryJSON ¶
func TryJSON(in interface{}) (result []byte)
TryJSON tries to marshal into JSON, if fails, then fails silently
func TryJSONPretty ¶
func TryJSONPretty(in interface{}) (result []byte)
TryJSONPretty tries to marshal into JSON - the pretty way, if fails, then fails silently
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.