Documentation ¶
Index ¶
- Variables
- func ConvertInt642String(data map[string]interface{})
- func Diff(new, old map[string]interface{}) map[string]Change
- func Merge(dst, src map[string]interface{}) map[string]interface{}
- func MergeOverwriteSlice(dst, src map[string]interface{}) map[string]interface{}
- type Change
- type ChangeType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MaxDepth = 32
)
Functions ¶
func ConvertInt642String ¶
func ConvertInt642String(data map[string]interface{})
func Merge ¶
Merge recursively merges the src and dst maps. Key conflicts are resolved by preferring src, or recursively descending, if both src and dst are maps. borrow code from https://github.com/peterbourgon/mergemap
func MergeOverwriteSlice ¶
Types ¶
type Change ¶
type Change struct { OldValue interface{} NewValue interface{} ChangeType ChangeType }
Click to show internal directories.
Click to hide internal directories.