utils

package
v0.0.0-...-794f3e4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSlice

func AddSlice(arr []string, strings ...string) []string

AddSlice adding element to slice

func ArrayToMap

func ArrayToMap(args ...string) map[string]string

ArrayToMap helper

func Includes

func Includes(arr []string, s string) bool

Includes helper

func MapIntToArray

func MapIntToArray(m map[string]int32) (res []string)

MapIntToArray helper

func MatchPredicate

func MatchPredicate(
	value []byte,
	predicate map[string]string,
) bool

MatchPredicate helper

func RemoveSlice

func RemoveSlice(arr []string, strings ...string) []string

RemoveSlice removing element from slice

func ToBoolean

func ToBoolean(input any) bool

ToBoolean converter

func ToFloat64

func ToFloat64(input any) (res float64)

ToFloat64 converter

func ToInt

func ToInt(input any) (res int)

ToInt helper

func ToInt64

func ToInt64(input any) (res int64)

ToInt64 helper

Types

This section is empty.

Jump to

Keyboard shortcuts

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