Documentation ¶
Index ¶
- func AreElementsUnique[T comparable](elems []T) bool
- func Contains[T comparable](elems []T, v T) bool
- func GetEnv(key string) string
- func GetEnvWithDefault(key, def string) string
- func GetKeys[K comparable, V any](m map[K]V) []K
- func GetUnique[T comparable](arr []T) []T
- func Max[T constraints.Ordered](s ...T) T
- func Min[T constraints.Ordered](s ...T) T
- func SetDiff[T comparable](orig, changed map[T]struct{}) map[T]struct{}
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 GetEnvWithDefault ¶
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 SetDiff ¶
func SetDiff[T comparable](orig, changed map[T]struct{}) map[T]struct{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.