Documentation ¶
Index ¶
- Constants
- func CompareBool(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareBytesWithObject(src []byte, dst interface{}, config Config, verbose bool) (int, error)
- func CompareComplex128(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareComplex64(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareFloat32(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareFloat64(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareInt(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareInt16(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareInt32(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareInt64(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareInt8(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareInterfaces(iA interface{}, iB interface{}, config Config, verbose bool) (int, error)
- func CompareMaps(iA interface{}, iB interface{}, config Config, verbose bool) (int, error)
- func CompareSlices(iA interface{}, iB interface{}, config Config, verbose bool) (int, error)
- func CompareStrings(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareUint(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareUint16(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareUint32(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareUint64(iA interface{}, iB interface{}, verbose bool) (int, error)
- func CompareUint8(iA interface{}, iB interface{}, verbose bool) (int, error)
- func GetMapKeyNames(obj interface{}, verbose bool) ([]string, error)
- func MapKeysAreEqual(a, b []string, verbose bool) bool
- func PrintResult(result int, err error)
- type Config
Constants ¶
View Source
const CONFIG_DEFAULT = 0
View Source
const CONFIG_SLICE_COMPAR_FULL = 1
View Source
const ERROR_INTERNAL = 12
View Source
const ERROR_JSON_MARSHAL = 4
View Source
const ERROR_JSON_UNMARSHAL = 3
View Source
const ERROR_MAP_KEYS_MISMATCH = 7
View Source
const ERROR_MAP_TYPE = 6
View Source
const ERROR_REFERENCE_OBJECT = 10
View Source
const ERROR_SLICE_COMPAR_FULL_FAIL = 11
View Source
const ERROR_TYPE_CONVERTION = 8
View Source
const ERROR_TYPE_MISMATCH = 5
View Source
const ERROR_TYPE_UNSUPPORTED = 9
View Source
const MSG_DIFFERENT = "Objects are different."
View Source
const MSG_EQUAL = "Objects are equal."
View Source
const MSG_ERROR_INTERNAL = "INTERNAL_ERROR"
View Source
const MSG_SIMILAR = "Objects have similar Structure, " +
"but the Values are different."
View Source
const MSG_UNKNOWN = "JSON Object has an unknown Field ('null'), " +
"and can not be compared. However, no Errors have been found."
View Source
const RESULT_EQUAL = 0
View Source
const RESULT_SIMILAR = 1
View Source
const RESULT_UNKNOWN = 2
Variables ¶
This section is empty.
Functions ¶
func CompareBool ¶
Compares Boolean Variables.
func CompareBytesWithObject ¶
Compares JSON Bytes with Destination Object.
func CompareComplex128 ¶
Compares Complex128 Variables.
func CompareComplex64 ¶
Compares Complex64 Variables.
func CompareFloat32 ¶
Compares Float32 Variables.
func CompareFloat64 ¶
Compares Float64 Variables.
func CompareInt ¶
Compares 'int' Variables.
func CompareInt16 ¶
Compares 'int16' Variables.
func CompareInt32 ¶
Compares 'int32' Variables.
func CompareInt64 ¶
Compares 'int64' Variables.
func CompareInt8 ¶
Compares 'int8' Variables.
func CompareInterfaces ¶
Compares Interfaces.
func CompareMaps ¶
Compares Maps.
func CompareSlices ¶
Compares Slices.
func CompareStrings ¶
Compares Strings.
func CompareUint ¶
Compares 'uint' Variables.
func CompareUint16 ¶
Compares 'uint16' Variables.
func CompareUint32 ¶
Compares 'uint32' Variables.
func CompareUint64 ¶
Compares 'uint64' Variables.
func CompareUint8 ¶
Compares 'uint8' Variables.
func GetMapKeyNames ¶
Returns the sorted List of Map's Keys.
func MapKeysAreEqual ¶
Compares Two String Slices (Map's String Keys).
Types ¶
Click to show internal directories.
Click to hide internal directories.