utils

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalizeString

func CapitalizeString(s string) string

func CopyMap added in v0.11.0

func CopyMap[T comparable, U any](m map[T]U) map[T]U

func EnvVar added in v0.11.0

func EnvVar[T envVar](key string, def T) T

func Map added in v0.15.0

func Map[T, U any](slice []T, f func(T) U) []U

Map applies the given mapper function to each element in the input slice and returns a new slice with the results.

func SliceContains added in v0.11.0

func SliceContains[T comparable](s []T, val T) bool

func SubtractSlice

func SubtractSlice(sl1, sl2 []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