Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONCopy ¶
func JSONCopy(dst, src interface{}) error
JSONCopy will copy src to dst via JSON serialization/deserialization.
func JSONSliceMerge ¶
func JSONSliceMerge(dst, src interface{}) error
JSONSliceMerge will merge two slices using JSONCopy according to these rules:
1. If `dst` and `src` are the same length, all elements are merged
2. If `dst` is longer, only the first `len(src)` elements are merged
3. If `src` is longer, first `len(dst)` elements are merged, then remaining elements are appended to `dst`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.