utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DedupeList

func DedupeList[T string | int](sliceList []T) []T

source https://stackoverflow.com/a/66751055

func InterfaceToMap

func InterfaceToMap(i interface{}) map[string]interface{}

function that converts an interface{} to a map[string]interface{}

func RandStringBytesMaskImprSrcUnsafe

func RandStringBytesMaskImprSrcUnsafe(n int) string

func StringContains added in v0.4.0

func StringContains(list []string, s string) bool

function that checks if a string is in 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