helpers

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Guard

func Guard(b string) string

Guard edits the given string. example: 'create $#% contact' -> 'create-contact'. @param string @param string return bool

func GuardArray

func GuardArray(b []string) (guardArray []string)

GuardArray edits the given string array. example: 'create $#% contact' -> 'create-contact'. @param []string return []string

func InArray

func InArray(val interface{}, array interface{}) bool

InArray is the value in the first parameter an element of the array in the second parameter? @param interface{} @param interface{} return bool

func IsArray

func IsArray(value interface{}) bool

IsArray is the given value an array? @param interface{} return bool

func IsInt

func IsInt(value interface{}) bool

IsInt is the given value an integer? @param interface{} return bool

func IsString

func IsString(value interface{}) bool

IsString is the given value an string? @param interface{} return bool

func IsStringArray

func IsStringArray(value interface{}) bool

IsStringArray is the given value an string array? @param interface{} return bool

func IsUInt

func IsUInt(value interface{}) bool

IsUInt is the given value an unsigned integer? @param interface{} return bool

func IsUIntArray

func IsUIntArray(value interface{}) bool

IsUIntArray is the given value an unsigned integer array? @param interface{} return bool

func JoinUintArrays

func JoinUintArrays(array ...[]uint) (j []uint)

JoinUintArrays concatenates the given uint arrays and makes them a single array. @param ...[]uint return []uint

func RemoveDuplicateValues

func RemoveDuplicateValues(intSlice []uint) []uint

RemoveDuplicateValues make singular of repeating values in an array. @param []uint return []uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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