Versions in this module Expand all Collapse all v0 v0.17.3 Mar 9, 2022 Changes in this version + const StringBool0 + const StringBool1 + const StringBoolDisableFirstCapital + const StringBoolDisableLowercase + const StringBoolDisabledFirstCapital + const StringBoolDisabledLowercase + const StringBoolEnableFirstCapital + const StringBoolEnableLowercase + const StringBoolEnabledFirstCapital + const StringBoolEnabledLowercase + const StringBoolFalseFirstCapital + const StringBoolFalseLowercase + const StringBoolNoFirstCapital + const StringBoolNoLowercase + const StringBoolOffFirstCapital + const StringBoolOffLowercase + const StringBoolOnFirstCapital + const StringBoolOnLowercase + const StringBoolTrueFirstCapital + const StringBoolTrueLowercase + const StringBoolYesFirstCapital + const StringBoolYesLowercase + func CastStringBoolTo01(str string, defaultValue bool) string + func CastStringBoolToStringTrueFalse(str string, defaultValue bool) string + func CastToSliceOfStrings(m map[string]interface{}) []string + func ContextError(ctx context.Context) error + func CopyMap(src map[string]string) map[string]string + func CopyMapExclude(src map[string]string, exceptKeys ...string) map[string]string + func CopyMapFilter(src map[string]string, include, exclude []string) map[string]string + func CopyMapInclude(src map[string]string, keys ...string) map[string]string + func CreateStringID(str string, maxHashLen int) string + func Dump(obj interface{}) string + func ErrIsNotCanceled(err error) bool + func ExtToLower(file string) string + func Fingerprint(obj interface{}) string + func Fprintf(w io.Writer, format string, a ...interface{}) + func HashIntoInt(b []byte) int + func HashIntoIntTopped(b []byte, top int) int + func HashIntoString(b []byte) string + func Iline(w io.Writer, indent int, format string, a ...interface{}) + func InArray(needle string, haystack []string) bool + func InArrayWithRegexp(needle string, haystack []string) bool + func IncludeNonEmpty(dst map[string]string, key, src string) + func IsAnnotationToBeSkipped(annotation string) bool + func IsContextDone(ctx context.Context) bool + func IsDirOk(path string) bool + func IsStringBool(str string) bool + func IsStringBoolFalse(str string) bool + func IsStringBoolTrue(str string) bool + func ListSkippedAnnotations() []string + func Map2String(name string, m map[string]string) string + func MapDeleteKeys(base map[string]string, keys ...string) map[string]string + func MapHasKeys(m map[string]string, keys ...string) bool + func MergeStringArrays(dst []string, src []string) []string + func MergeStringMapsOverwrite(dst, src map[string]string, keys ...string) map[string]string + func MergeStringMapsPreserve(dst, src map[string]string, keys ...string) map[string]string + func MessageDiffItemString(banner string, items map[*messagediff.Path]interface{}) string + func MessageDiffString(diff *messagediff.Diff, equal bool) string + func NamespaceName(meta v1.ObjectMeta) (string, string) + func NamespaceNameString(meta v1.ObjectMeta) string + func PreparePath(path *string, basePath, defaultRelativePath string) + func ReadFilesIntoMap(path string, isOurFile func(string) bool) map[string]string + func ReasonableDuration(durations ...time.Duration) time.Duration + func RelativeToBasePath(basePath, relativePath string) string + func RemoveFromArray(needle string, haystack []string) []string + func Slice2String(name string, slice []string) string + func StringHead(str string, maxHeadLen int) string + func SubtractStringMaps(base, delta map[string]string) map[string]string + func Unzip(slice [][]string) ([]string, []string) + func WaitContextDoneOrTimeout(ctx context.Context, timeout time.Duration) bool + func WaitContextDoneUntil(ctx context.Context, t time.Time) bool + type MapReplacer struct + func NewMapReplacer(r *strings.Replacer) *MapReplacer + func (r *MapReplacer) Replace(m map[string]string) map[string]string