Documentation
¶
Index ¶
- func Contains[T comparable](list []T, a T) bool
- func FlatMapSliceValues[V any, V2 any](values []V, mapper func(V) []V2) []V2
- func GetOrDefault[V any](v *V, defaultValue V) V
- func GetSortedMapValues[T any](r map[string]T) []T
- func GetTfResourceId(resourceId string, cloud string) string
- func Keys[K comparable, V any](m map[K]V) []K
- func MapSliceValues[V any, V2 any](values []V, mapper func(V) V2) []V2
- func MapSliceValuesErr[V any, V2 any](values []V, mapper func(V) (V2, error)) ([]V2, error)
- func MapValues[K comparable, V any, V2 any](m map[K]V, mapper func(V) V2) map[K]V2
- func MaxBy[K constraints.Ordered, V any, P constraints.Ordered](r map[K]V, selector func(V) P) K
- func SortResourcesById[T any](r []T, idGetter func(T) string) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](list []T, a T) bool
func FlatMapSliceValues ¶
func GetOrDefault ¶
func GetOrDefault[V any](v *V, defaultValue V) V
func GetSortedMapValues ¶
func GetTfResourceId ¶
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func MapSliceValues ¶
func MapSliceValuesErr ¶ added in v0.1.13
func MapValues ¶
func MapValues[K comparable, V any, V2 any](m map[K]V, mapper func(V) V2) map[K]V2
func MaxBy ¶
func MaxBy[K constraints.Ordered, V any, P constraints.Ordered](r map[K]V, selector func(V) P) K
func SortResourcesById ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.