Documentation ¶
Index ¶
- func AreStructsEqual(s1, s2 interface{}, fieldsToExclude []string) bool
- func DoesSliceContain[T comparable](slice []T, target T) bool
- func GetStructHash(s interface{}, fieldsToExclude []string) (uint64, error)
- func IsRegionValid(region string) (bool, error)
- func ZoneToRegion(zone string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreStructsEqual ¶
AreStructsEqual returns true if two given structs of the same type have matching fields values on all types except those listed in fieldsToExclude
func DoesSliceContain ¶
func DoesSliceContain[T comparable](slice []T, target T) bool
DoesSliceContain returns true if a slice contains an item
func GetStructHash ¶
returns hash value of any struct containing primitives, or slices of primitives. fieldsToExclude contains field names to be excluded from hash calculation.
func IsRegionValid ¶
IsRegionValid returns true if region is a valid IBM region
func ZoneToRegion ¶
returns region of string with region validation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.