package
0.64.11
Repository: https://github.com/grokify/mogo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

Capitalize returns a string with the first character capitalized and the rest lower cased.
CarriageReturnsToLinefeeds replaces `\r\n` with `\n` followed by replacing `\r` by `\n`.
CommonInitialismsMap returns map[string]bool of upper case initialisms.
CondenseLines improves text layout by (a) remove staring and trailing spaces from eacn line, (b) remove starting and training new lines before and after characters, and (c) ensuring that there is a max of 2 consecutive line feeds.
CondenseSpace removes extra spaces.
CondenseString trims whitespace at the ends of the string as well as in between.
No description provided by the author
No description provided by the author
EmptyError takes a string and error, returning the string value or an empty string if an error is encountered.
No description provided by the author
No description provided by the author
EqualFoldFull provides "full Unicode case-folding", unlike `strings.EqualFold` which provides "simple Unicode case-folding".
No description provided by the author
FirstNotEmptyTrimSpace returns the first non-empty string after applying `strings.TrimSpace()`.`.
No description provided by the author
No description provided by the author
IndexMulti returns the earliest match.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JoinInterface joins an interface and returns a string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Match provides an canonical way to match strings using multiple approaches.
Matrix2DColRowIndex returns the row index where the string supplied is first encountered for a supplied column index.
No description provided by the author
No description provided by the author
PadLeft prepends a string to a base string until the string length is greater or equal to the desired length.
PadRight appends a string to a base string until the string length is greater or equal to the desired length.
No description provided by the author
RemoveSpaces eliminates all spaces in a string.
Repeat returns atring of length `length` by repeating string `s`.
Reverse reverses string using strings.Builder.
ReverseIndex returns the `Index` after reversing the supplied string and substring.
No description provided by the author
SliceBySplitLength returns lines by split length.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SliceCondenseSpace trims space from lines and removes empty lines.
SliceIndex returns the index of the first match using `=`.
SliceIndexContains returns the index of the first match using `strings.Contains()`.
SliceIndexMore returns the index of an element in a string slice.
SliceIndexOrEmpty returns the element at the index provided or an empty string.
No description provided by the author
No description provided by the author
SliceIsEmpty checks to see if a slice is empty.
SliceJoinFunc joins a slice passing each elemen through the supplied function `f`.
No description provided by the author
SliceOrderExplicit reoders the values of a slice using a requested input order where the output is ordered by the requested order, minus missing requests, and followed by non-ordered items.
SlicesCompare returns 3 slices given 2 slices which represent intersection sets.
SliceSplitLengthStats returns a `map[int]int` indicating how many strings of which length are present.
SliceSubtract uses Set math to remove elements of filter from real.
SliceToDoc converts a slice to a map, trimming the values if desired.
SliceToMap returns the slide where the slice elements are the keys of the map, and the value is the number of times it appears.
SliceToSingleIntOrNeg converts a single element slice with a string to an integer or `-1`.
SliceTrim trims each line in a slice of lines using a provided cut string.
SliceTrimSpace removes leading and trailing spaces per string.
SplitCondenseSpace splits a string and trims spaces on remaining elements, removing empty elements.
No description provided by the author
SplitTextLines splits a string on the regxp `(\r\n|\r|\n)`.
SplitTrimSpace splits a string and trims spaces on remaining elements.
StringToConstant is used to generate constant names for code generation.
StripChars removes chars specified by `cutset` while maintaining order of remaining chars and shortening string per removed chars.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ToBool converts a string to a boolean value converting "f", "false", "0" and the empty string to false with everything else being true.
No description provided by the author
ToLowerFirst lower cases the first letter in the string.
No description provided by the author
ToUpperFirst upper cases the first letter in the string.
TrimSentenceLength trims a string by a max length at word boundaries.
TrimSpaceOrDefault trims spaces and replaces default value if result is empty string.
UniqueRunes checks to see if a string's runes are unique.
No description provided by the author

# Constants

CommonInitialisms is the listed by Go Lint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author