Documentation
¶
Index ¶
- Constants
- Variables
- func AnyToString(any interface{}) string
- func AnyToStringNameField(any interface{}) string
- func AnyToTypeString(any interface{}) string
- func ClonePtr(strIn *string) (cloneOut *string)
- func FirstChar(input string) byte
- func FirstCharOrDefault(input string) byte
- func IsAnyEndsWith(content string, isIgnoreCase bool, endsWithTerms ...string) bool
- func IsAnyStartsWith(content string, isIgnoreCase bool, startsWithTerms ...string) bool
- func IsBlank(str string) bool
- func IsBlankPtr(s *string) bool
- func IsContains(lines []string, findingString string, startsAtIndex int, isCaseSensitive bool) bool
- func IsContainsPtr(lines *[]string, findingString *string, startsAtIndex int, ...) bool
- func IsContainsPtrSimple(lines *[]string, findingString string, startsAtIndex int, isCaseSensitive bool) bool
- func IsDefined(str string) bool
- func IsDefinedPtr(str *string) bool
- func IsEmpty(str string) bool
- func IsEmptyOrWhitespace(str string) bool
- func IsEmptyOrWhitespacePtr(stringPtr *string) bool
- func IsEmptyPtr(str *string) bool
- func IsEnds(content, endsWith string) bool
- func IsEndsChar(content string, char byte) bool
- func IsEndsRune(content string, r rune) bool
- func IsEndsWith(baseStr, endsWith string, isIgnoreCase bool) bool
- func IsNotEmpty(str string) bool
- func IsNullOrEmptyPtr(stringPtr *string) bool
- func IsStarts(content, startsWith string) bool
- func IsStartsAndEnds(content, startsWith, endsWith string) bool
- func IsStartsAndEndsChar(content string, startsWith, endsWith byte) bool
- func IsStartsAndEndsWith(content, startsWith, endsWith string, isIgnoreCase bool) bool
- func IsStartsChar(content string, char byte) bool
- func IsStartsRune(content string, r rune) bool
- func IsStartsWith(content, startsWith string, isIgnoreCase bool) bool
- func LastChar(input string) byte
- func LastCharOrDefault(input string) byte
- func MaskLine(mask, line string) string
- func MaskLines(mask string, lines ...string) []string
- func MaskTrimLine(mask, line string) string
- func MaskTrimLines(mask string, lines ...string) []string
- func RemoveMany(content string, removeRequests ...string) string
- func RemoveManyBySplitting(content string, splitsBy string, removeRequests ...string) []string
- func SafeClonePtr(strIn *string) (cloneOut *string)
- func SafeSubstring(content string, startAt, endingLength int) string
- func SafeSubstringEnds(content string, endingLen int) string
- func SafeSubstringStarts(content string, startAt int) string
- func SplitContentsByWhitespaceConditions(input string, isTrimEachLine, isNonEmptyWhitespace, isSort bool, isUnique bool, ...) []string
- func SplitFirstLast(s, separator string) (first, last string)
- func SplitLeftRight(s, separator string) (left, right string)
- func SplitLeftRightTrimmed(s, separator string) (left, right string)
- func SplitLeftRightType(s, separator string) *corestr.LeftRight
- func SplitLeftRightTypeTrimmed(s, separator string) *corestr.LeftRight
- func SplitLeftRightsTrims(separator string, lines ...string) []*corestr.LeftRight
- func ToBool(s string) bool
- func ToByte(s string, defVal byte) byte
- func ToByteDefault(s string) byte
- func ToInt(s string, defVal int) int
- func ToInt16(s string, defVal int16) int16
- func ToInt16Default(s string) int16
- func ToInt32(s string, defVal int32) int32
- func ToInt32Def(s string) int32
- func ToInt8(s string, defVal int8) int8
- func ToInt8Def(s string) int8
- func ToIntDef(s string) int
- func ToIntDefault(s string) int
- func ToIntUsingRegexMatch(regEx *regexp.Regexp, s string) int
- func ToUint16Default(s string) uint16
- func ToUint32Default(s string) uint32
Constants ¶
View Source
const (
ExpectedLeftRightLength = constants.Two
)
Variables ¶
View Source
var (
ReplaceTemplate = replaceTemplate{}
)
Functions ¶
func AnyToString ¶
func AnyToString(any interface{}) string
func AnyToStringNameField ¶
func AnyToStringNameField(any interface{}) string
func AnyToTypeString ¶
func AnyToTypeString(any interface{}) string
func FirstCharOrDefault ¶ added in v0.6.9
FirstCharOrDefault gives 0 if nothing present
func IsAnyEndsWith ¶ added in v0.6.8
func IsAnyStartsWith ¶ added in v0.6.8
func IsBlankPtr ¶ added in v0.6.2
IsBlankPtr alias for IsEmptyOrWhitespace
func IsContains ¶
func IsContainsPtr ¶
func IsContainsPtrSimple ¶
func IsDefinedPtr ¶ added in v0.6.2
IsDefinedPtr alias for NOT IsEmptyOrWhitespace
func IsEmptyOrWhitespace ¶
func IsEmptyOrWhitespacePtr ¶
func IsEmptyPtr ¶ added in v0.6.2
func IsEndsChar ¶ added in v0.6.8
IsEndsChar searches for case sensitive terms
func IsEndsRune ¶ added in v0.6.8
IsEndsRune searches for case sensitive terms
func IsEndsWith ¶
func IsNotEmpty ¶ added in v0.8.1
func IsNullOrEmptyPtr ¶
func IsStartsAndEnds ¶ added in v0.6.8
IsStartsAndEnds case sensitive term
func IsStartsAndEndsChar ¶ added in v0.6.8
IsStartsAndEndsChar case sensitive term
func IsStartsAndEndsWith ¶ added in v0.6.8
func IsStartsChar ¶ added in v0.6.8
IsStartsChar searches for case sensitive terms
func IsStartsRune ¶ added in v0.6.8
IsStartsRune searches for case sensitive terms
func IsStartsWith ¶
func LastCharOrDefault ¶ added in v0.6.9
func MaskTrimLine ¶ added in v0.5.6
func MaskTrimLines ¶ added in v0.5.6
func RemoveMany ¶ added in v0.6.8
func RemoveManyBySplitting ¶ added in v0.6.8
RemoveManyBySplitting Remove as per removes then splits by the given separator
func SafeClonePtr ¶ added in v0.6.3
func SafeSubstring ¶ added in v0.6.8
SafeSubstring content[startAt:endAt]
func SafeSubstringEnds ¶ added in v0.6.8
SafeSubstringEnds
content[:endingLen]
-1 meaning upto the length
func SafeSubstringStarts ¶ added in v0.6.8
SafeSubstringStarts
content[startAt:] -1 meaning get full text
func SplitContentsByWhitespaceConditions ¶ added in v0.7.1
func SplitFirstLast ¶ added in v0.9.5
func SplitLeftRight ¶
func SplitLeftRightTrimmed ¶ added in v0.5.6
func SplitLeftRightType ¶
func SplitLeftRightTypeTrimmed ¶ added in v0.5.6
func SplitLeftRightsTrims ¶ added in v0.5.6
func ToByteDefault ¶ added in v0.9.8
func ToInt16Default ¶ added in v0.9.8
func ToInt32Def ¶ added in v0.6.2
func ToIntDefault ¶ added in v0.9.8
func ToIntUsingRegexMatch ¶ added in v0.9.8
func ToUint16Default ¶ added in v0.9.8
func ToUint32Default ¶ added in v0.9.8
Types ¶
This section is empty.
Source Files
¶
- AnyToString.go
- AnyToStringNameField.go
- AnyToTypeString.go
- ClonePtr.go
- FirstChar.go
- IsAnyEndsWith.go
- IsAnyStartsWith.go
- IsBlank.go
- IsBlankPtr.go
- IsContains.go
- IsContainsPtr.go
- IsContainsPtrSimple.go
- IsDefined.go
- IsDefinedPtr.go
- IsEmpty.go
- IsEmptyOrWhitespace.go
- IsEmptyOrWhitespacePtr.go
- IsEmptyPtr.go
- IsEnds.go
- IsEndsChar.go
- IsEndsRune.go
- IsEndsWith.go
- IsNotEmpty.go
- IsNullOrEmptyPtr.go
- IsStarts.go
- IsStartsAndEndsChar.go
- IsStartsAndEndsWith.go
- IsStartsChar.go
- IsStartsRune.go
- IsStartsWith.go
- MaskLine.go
- MaskLines.go
- MaskTrimLine.go
- MaskTrimLines.go
- RemoveMany.go
- RemoveManyBySplitting.go
- SafeClonePtr.go
- SafeSubstring.go
- SafeSubstringEnds.go
- SafeSubstringStarts.go
- SplitContentsByWhitespaceConditions.go
- SplitFirstLast.go
- SplitLeftRight.go
- SplitLeftRightTrimmed.go
- SplitLeftRightType.go
- SplitLeftRightTypeTrimmed.go
- SplitLeftRightsTrims.go
- ToBool.go
- ToByte.go
- ToByteDefault.go
- ToInt.go
- ToInt16.go
- ToInt16Default.go
- ToInt32.go
- ToInt32Def.go
- ToInt8.go
- ToInt8Def.go
- ToIntDef.go
- ToIntDefault.go
- ToIntUsingRegexMatch.go
- ToUint16Default.go
- ToUint32Default.go
- consts.go
- replaceTemplate.go
- vars.go
Click to show internal directories.
Click to hide internal directories.