package
0.1.35
Repository: https://github.com/kong/go-apiops.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
DeepCopyArray implements a poor man's deepcopy by jsonify/de-jsonify.
DeepCopyObject implements a poor man's deepcopy by jsonify/de-jsonify.
GetBoolField returns a boolean from an object field.
GetBoolIndex returns a boolean-value from an array index.
GetFloat64Field returns a float64 from an object field.
GetFloat64Index returns a float64-value from an array index.
GetInt64Field returns an int64 from an object field.
GetInt64Index returns an int64-value from an array index.
GetObjectArrayField returns a new slice containing all objects from the array referenced by fieldName.
GetStringArrayField returns a new slice containing all strings from the array referenced by fieldName.
GetStringField returns a string-value from an object field.
GetStringIndex returns a string-value from an array index.
GetUInt64Field returns a uint64 from an object field.
GetUInt64Index returns a uint64-value from an array index.
RemoveObjectFromArrayByFieldValue returns a slice in which objects that match the field value are removed.
SetObjectArrayField sets an array in a parsed json object.
ToArray returns the array, or nil+err.
ToObject returns the object, if it was one, or nil+err.