Documentation
¶
Index ¶
- func ComputeJSONDiff(oldData, newData map[string]any) (map[string]any, error)
- func GetInt16Hash(s string) int16
- func JSONToMap(v any) (map[string]any, error)
- func PackData(data map[string]any) (string, error)
- func ParseDate(value string) time.Time
- func UnpackData(packed string) (map[string]any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeJSONDiff ¶
ComputeJSONDiff build RFC7396 merge patch between two JSON objects. If documents are structurally equal, return empty map.
func GetInt16Hash ¶
func JSONToMap ¶
JSONToMap serialize value to JSON and parse it as map (keys are json-tags of fields).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.