Versions in this module Expand all Collapse all v0 v0.0.8 Jan 5, 2022 Changes in this version + var ErrOutOfBounds = errors.New("out of bounds") + var ErrUnSupportedType = errors.New("unsupported type") + func EqualsEither(str string, targetList []string) bool + func FilterMapByKey(kv map[string]string, f func(string) bool) []string + func FilterMapByValue(kv map[string]string, f func(string) bool) []string + func FilterMapKeys(kv map[string]string, f func(string) bool) []string + func FilterMapValues(kv map[string]string, f func(string) bool) []string + func FindIndexOfSliceElement(arr []string, patternInterface interface{}) int + func GetDockerfileAst(filePathString string) ([]instructions.Stage, []instructions.ArgCommand, error) + func InsertIntoSlice(originalSlice []string, element string, index int) ([]string, error) + func IsUnixPortValid(portParam interface{}) bool + func MatchDockerImageNames(str1, str2 string) bool + func ParseDockerfileInstructionsSafely(dockerfile *parser.Result, fileHandle io.ReadSeeker) ([]instructions.Stage, []instructions.ArgCommand) + func ParseKeyValueMap(strList []string, separator rune, finishOnMiss bool) map[string]string + func ReadFileContents(filePath string) (string, error) + func RemoveExtraSpaces(str string, trim bool) string + func SliceContains(arr []string, patternInterface interface{}) bool + func SplitKeyValue(s string, r rune) (string, string) + func SplitMulti(str string, patternSlice []string) []string