Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayOfInterfaceToArrayOf ¶
func ArrayOfInterfaceToArrayOf[T comparable](in []interface{}) ([]T, error)
Converts an array of interface{} to an array of a specific type T. The function checks if the elements in the input array can be converted to the specified type T.
func CheckValidPointerToStruct ¶ added in v0.4.0
func CheckValidPointerToStruct(in interface{}) error
Checks if the given value is a pointer to a struct.
func IsArray ¶ added in v0.4.0
func IsArray(in interface{}) bool
Checks if the given value is an array or slice.
func IsArrayOfMap ¶ added in v0.4.0
func IsArrayOfMap(in interface{}) bool
Checks if the given value is an array of maps.
func IsArrayOfStruct ¶ added in v0.4.0
func IsArrayOfStruct(in interface{}) bool
Checks if the given value is an array or slice of structs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.