package
0.7.0
Repository: https://github.com/cncf/devstatscode.git
Documentation: pkg.go.dev

# Functions

CompareIntSlices - compares two int slices.
CompareSets - comparses two string sets.
CompareSlices - compares two any type slices.
CompareSlices2D - compares two slices of any type slices.
CompareStringSlices - compares two string slices.
CompareStringSlices2D - compares two slices of string slices.
MakeComparableMap - transforms input map { k1: v1, k2: v2, ..., kn: vn } into map with single key being its string representation, works on map[string]bool type Example: { "b": true, "a": false, "c": true } --> { "a:false,b:true,c:true,": true } We cannot compare such maps directly because order of keys is not guaranteed.
MakeComparableMap2 - transforms input map { k1: { true: struct{}{}, false: struct{}{}, ...}, k2: { ..
MakeComparableMapStr - transforms input map { k1: v1, k2: v2, ..., kn: vn } into map with single key being its string representation, works on map[string]string type Example: { "b": "x", "a": "y", "c": "z" } --> { "a:y,b:x,c:z,": true } We cannot compare such maps directly because order of keys is not guaranteed.
YMDHMS - return time defined by args.