# Functions
ComputePad returns pad's count and space's count(less than len(pad)) will be need to pad s to len n padCount = (n-len(s))/len(pad) spaceCount = (n-len(s))%len(pad).
ContainsAnyRangeTable reports whether the string contains any rune in any of the specified table of ranges.
ContainsAsciiVisual reports whether the string contains any rune in visual ascii code, that is [0x21, 0x7E].
ContainsAsciiVisual reports whether the string contains only rune in visual ascii code, that is [0x21, 0x7E].
ContainsOnlyRangeTable reports whether the string contains only rune in all of the specified table of ranges.
ContainsRuneAnyFunc reports whether any of the Unicode code point r satisfying f(r) is within s.
ContainsRuneOnlyFunc reports whether all of the Unicode code point r satisfying f(r) is within s.
CountPrefix counts the number of non-overlapping instances of continuous substr prefix in s.
CountSuffix counts the number of non-overlapping instances of continuous substr suffix in s.
DarwinCase returns the DarwinCased name.
DotCase returns the KebabCased name.
DottedSlice turns a sliced name into a dotted name.
No description provided by the author
JoinGenerator supplies sep between strings step by step, with mapping if consists [r0,r1,r2] -> "r0'""sep""r1'""sep""r2'".
JoinRepeat behaves like strings.Join([]string{s,...,s}, sep).
KebabCase returns the KebabCased name.
LowerCamelCase returns the CamelCased name by lowercase uppercase letter.
LowerCamelCaseSlice is like LowerCamelCase, but the argument is a slice of strings to be joined with "_".
lower_case_with_underscores.
MapLeading returns a copy of the string s with its first characters modified according to the mapping function.
PadLeft returns s padded to length n, padded left with repeated pad return s directly if pad is empty padding s with {{pad}} and spaces(less than len(pad)) as a prefix, as [pad]...[pad][space]...[space][s].
PadRight returns s padded to length n, padded right with repeated pad return s directly if pad is empty padding s with {{pad}} and spaces(less than len(pad)) as a suffix, as [s][space]...[space][pad]...[pad].
ReverseByByte returns a string with the bytes of s in reverse order.
ReverseByRune returns a string with the runes of s in reverse order.
SliceCombine combine elements to a new slice.
SliceContains reports whether all t in tt is within ss.
SliceContainsAny reports whether any t in tt is within ss.
SliceEqualFold reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding, which is a more general form of case-sensitivity.
SliceEqualFold reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding, which is a more general form of case-insensitivity.
SliceTrim returns a slice of the string ss with tt removed.
SliceTrimEmpty trim empty columns.
SliceTrimFunc returns a slice of the string ss satisfying f(c) removed.
SliceUnique returns the given string slice with unique values.
SnakeCase returns the SnakeCased name.
SplitPrefixNumber slices s into number prefix and unparsed and returns a slice of those substrings.
Studly caps is a form of text notation in which the capitalization of letters varies by some pattern, or arbitrarily, usually also omitting spaces between words and often omitting some letters, for example, StUdLyCaPs or STuDLyCaPS.
"THeQuiCKBRoWNFoXJuMPSoVeRTHeLaZYDoG".
"thEqUIckbrOwnfOxjUmpsOvErthElAzydOg".
ToLowerLeading returns s with it's first Unicode letter mapped to their lower case.
ToUpperLeading returns s with it's first Unicode letter mapped to their upper case.
TransformCase Splits and apply map on every splits.
TrimPrefixComplex returns s without the leading complex prefix string.
TrimPrefixFloat returns s without the leading float prefix string.
TrimPrefixInteger returns s without the leading integer prefix string.
TrimPrefixNumber returns s without the leading number prefix string.
Truncate shrinks s's len to n at most.
UpperCamelCase returns the CamelCased name by initial uppercase letter.
UpperCamelCaseSlice is like UpperCamelCase, but the argument is a slice of strings to be joined with "_".
ValueOrDefault Return first value nonempty Example:
ValueOrDefault(value, def).
# Variables
AllCapsCase is an unicase style with capital letters only.
AllLowercase is an unicase style with no capital letters.
No description provided by the author
Some people and organizations, notably Microsoft, use the term camel case only for lower camel case.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
lowercase.
MixedCase for lower camel case in Python.
No description provided by the author
SentenceCase is a mixed-case style in which the first word of the sentence is capitalised, as well as proper nouns and other words as required by a more specific rule.
TitleCase capitalises all words but retains the spaces between them https://en.wikipedia.org/wiki/Letter_case#Title_Case "The Quick Brown Fox Jumps over the Lazy Dog".