Documentation ¶
Index ¶
- func MarshalWithCustomFields(v interface{}, cf map[string]interface{}) ([]byte, error)
- func MergeCustomFields(v interface{}, cf map[string]interface{}) (map[string]interface{}, error)
- func ToMap(v interface{}) (map[string]interface{}, error)
- func ToMaps(v []interface{}) ([]map[string]interface{}, error)
- func UnmarshalWithCustomFields(data []byte, v interface{}, cf map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalWithCustomFields ¶
MarshalWithCustomFields marshals value merged with custom fields defined in the map into JSON bytes.
func MergeCustomFields ¶
MergeCustomFields converts value to the JSON-like map and merges it with custom fields map cf.
func UnmarshalWithCustomFields ¶
UnmarshalWithCustomFields unmarshals JSON into value v and puts all JSON fields which do not belong to value into custom fields map cf.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.