helpers

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyMatch added in v1.7.0

func AnyMatch[T any](ss []T, filter func(T) bool) bool

func BoolValueOrNull

func BoolValueOrNull(v *bool) types.Bool

func CheckAndGetIfNumericString added in v1.5.0

func CheckAndGetIfNumericString(s string) (bool, float64)

func DoesTfListContainsEmptyValue added in v1.7.0

func DoesTfListContainsEmptyValue(tfValues types.List) bool

func EnumForDocs

func EnumForDocs(stringArray []string) string

func Filter added in v1.7.0

func Filter[T any](ss []T, filter func(T) bool) (retVal []T)

func FindDuplicates added in v1.7.0

func FindDuplicates[T int | string](es []T, stopAfterFirst bool) []T

func FindFirst added in v1.7.0

func FindFirst[T any](ss []T, filter func(T) bool) (retVal T)

func Int64ValueOrNull

func Int64ValueOrNull(v *int) types.Int64

func IsAllNilFields added in v1.10.0

func IsAllNilFields(x interface{}) bool

func IsBlank added in v1.7.0

func IsBlank(s string) bool

func IsKnown added in v1.8.0

func IsKnown(e attr.Value) bool

func IsTfStringSliceUnique added in v1.5.0

func IsTfStringSliceUnique(tfList types.List) bool

func IsTrue added in v1.7.0

func IsTrue(v types.Bool) bool

func IsUnique added in v1.7.0

func IsUnique[T int | string](es []T) bool

func Map added in v1.7.0

func Map[T any, S any](ss []T, f func(T) S) (retVal []S)

func StringPointerSliceToTfList added in v1.7.0

func StringPointerSliceToTfList(vs []*string) types.List

func StringValueIfNotEqual added in v1.11.0

func StringValueIfNotEqual(v *string, notEqualTo string) types.String

func StringValueOrNull

func StringValueOrNull(v *string) types.String

func TfListStringConverter added in v1.7.0

func TfListStringConverter(plan types.List, state types.List) ([]*string, bool)

func TfListToStringPointerSlice added in v1.7.0

func TfListToStringPointerSlice(vs types.List) []*string

func TfListToStringSlice added in v1.9.0

func TfListToStringSlice(tfList types.List) []*string

func TrimDoubleQuotesIfPresent added in v1.7.0

func TrimDoubleQuotesIfPresent(s string) string

func Xor added in v1.7.0

func Xor(values ...attr.Value) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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