stringutil

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 5 Imported by: 15

Documentation

Index

Constants

View Source
const (
	ExpectedLeftRightLength = constants.Two
)

Variables

This section is empty.

Functions

func AnyToString

func AnyToString(any interface{}) string

func AnyToStringNameField

func AnyToStringNameField(any interface{}) string

func AnyToTypeString

func AnyToTypeString(any interface{}) string

func IsContains

func IsContains(
	lines []string,
	findingString string,
	startsAtIndex int,
	isCaseSensitive bool,
) bool

func IsContainsPtr

func IsContainsPtr(
	lines *[]string,
	findingString *string,
	startsAtIndex int,
	isCaseSensitive bool,
) bool

func IsContainsPtrSimple

func IsContainsPtrSimple(
	lines *[]string,
	findingString string,
	startsAtIndex int,
	isCaseSensitive bool,
) bool

func IsEmptyOrWhitespace

func IsEmptyOrWhitespace(str string) bool

func IsEmptyOrWhitespacePtr

func IsEmptyOrWhitespacePtr(stringPtr *string) bool

func IsEndsWith

func IsEndsWith(
	baseStr,
	endsWith string,
	isIgnoreCase bool,
) bool

func IsNullOrEmptyPtr

func IsNullOrEmptyPtr(stringPtr *string) bool

func IsStartsWith

func IsStartsWith(
	baseStr, startsWith string,
	isIgnoreCase bool,
) bool

func MaskLine added in v0.5.6

func MaskLine(
	mask,
	line string,
) string

func MaskLines added in v0.5.6

func MaskLines(
	mask string,
	lines ...string,
) []string

func MaskTrimLine added in v0.5.6

func MaskTrimLine(
	mask,
	line string,
) string

func MaskTrimLines added in v0.5.6

func MaskTrimLines(
	mask string,
	lines ...string,
) []string

func SplitLeftRight

func SplitLeftRight(s, separator string) (left, right string)

func SplitLeftRightTrimmed added in v0.5.6

func SplitLeftRightTrimmed(s, separator string) (left, right string)

func SplitLeftRightType

func SplitLeftRightType(s, separator string) *corestr.LeftRight

func SplitLeftRightTypeTrimmed added in v0.5.6

func SplitLeftRightTypeTrimmed(s, separator string) *corestr.LeftRight

func SplitLeftRightsTrims added in v0.5.6

func SplitLeftRightsTrims(separator string, lines ...string) []*corestr.LeftRight

Types

This section is empty.

Jump to

Keyboard shortcuts

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