package
0.0.11
Repository: https://github.com/acmestack/godkits.git
Documentation: pkg.go.dev

# Functions

AnyEmpty strings.
DefaultIfEmpty if the string return the defaultStr.
Empty string.
NoneEmpty strings.
NotEmpty string.
ReplaceAll Replace all old in str with new.
Strip Delete the characters that start and end with stripChars * <p>Strips any of a set of characters from the start and end of a String.
StripBlank Deletes leading and trailing whitespace characters * <p>Strips whitespace from the start and end of a String.</p> * * <p>This is similar to {@link Trim(String)} but removes whitespace.
StripEnd Delete the characters that end with stripChars * <p>Strips any of a set of characters from the end of a String.</p> * * <p>A {@code EmptyStr} input String returns {@code EmptyStr}.
StripStart Delete the characters that start with stripChars * <p>Strips any of a set of characters from the start of a String.</p> * * <p>A {@code EmptyStr} input String returns {@code EmptyStr}.
ToBool convert string to bool wrap strconv.ParseBool.
ToBytes concert string to bytes.
ToComplex convert string to complex wrap strconv.ParseComplex.
ToFloat64 convert string to float64 wrap strconv.ParseFloat.
ToFloat64OrDefault convert string to float64, if str empty or err you can get default value tha you want.
ToInt convert string int wrap strconv.Atoi.
ToIntOrDefault convert string int, if str empty or err you can get default value tha you want.
ToUnit convert string to unit If the base argument is 0, the true base is implied by the string's prefix following the sign (if present): 2 for "0b", 8 for "0" or "0o", 16 for "0x", and 10 otherwise.
Trim the " " cutset.

# Structs

Builder extend from strings.Builder.