utils

package
v0.0.0-...-60a21d4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySlice

func CopySlice(values []interface{}) []interface{}

func Flatten

func Flatten(value interface{}) []interface{}

func GetIF

func GetIF(condition bool, value interface{}, defaultValue interface{}) interface{}

func IntHave

func IntHave(source []int, one int) bool

func IntPtr

func IntPtr(value int) *int

func IntVal

func IntVal(v *int, defaults ...int) int

func InterfaceUnique

func InterfaceUnique(slice []interface{}) []interface{}

func IsNil

func IsNil(value interface{}) bool

func IsNumeric

func IsNumeric(v interface{}) bool

func MapFilp

func MapFilp(v interface{}) (interface{}, bool)

func PanicIF

func PanicIF(v interface{})

func Println

func Println(v interface{})

func StringHave

func StringHave(source []string, one string) bool

func StringPtr

func StringPtr(value string) *string

func StringUnique

func StringUnique(slice []string) []string

func StringVal

func StringVal(v *string, defaults ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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