helper

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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.

func IsString added in v0.4.0

func IsString(in interface{}) bool

Checks if the given value is a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL