utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreElementsUnique

func AreElementsUnique[T comparable](elems []T) bool

func Contains

func Contains[T comparable](elems []T, v T) bool

func GetEnv

func GetEnv(key string) string

func GetEnvWithDefault

func GetEnvWithDefault(key, def string) string

func GetKeys

func GetKeys[K comparable, V any](m map[K]V) []K

func GetUnique

func GetUnique[T comparable](arr []T) []T

func Max

func Max[T constraints.Ordered](s ...T) T

func Min

func Min[T constraints.Ordered](s ...T) T

func ObtainCert added in v0.0.2

func ObtainCert(endpoint string) string

func SetDiff

func SetDiff[T comparable](orig, changed map[T]struct{}) map[T]struct{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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