package
0.0.0-20240311165601-da789b0b04e2
Repository: https://github.com/protoflow-labs/protoflow.git
Documentation: pkg.go.dev

# Functions

IsAlpha returns true for [a-zA-Z].
IsAlphanumeric returns true for [0-9a-zA-Z].
IsLowerAlpha returns true for [a-z].
IsLowerAlphanumeric returns true for [0-9a-z].
IsNumeric returns true for [0-9].
IsUpperAlpha returns true for [A-Z].
JoinSliceQuoted joins the slice with quotes.
MapToSlice transforms m to a slice.
MapToSortedSlice transforms m to a sorted slice.
SliceElementsContained returns true if superset contains subset.
SliceElementsEqual returns true if the two slices have equal elements.
SliceToChunks splits s into chunks of the given chunk size.
SliceToHumanString prints the slice as "e1, e2, and e3".
SliceToHumanStringOr prints the slice as "e1, e2, or e3".
SliceToHumanStringOrQuoted prints the slice as `"e1", "e2", or "e3"`.
SliceToHumanStringQuoted prints the slice as `"e1", "e2", and "e3"`.
SliceToMap transforms s to a map.
SliceToString prints the slice as [e1,e2].
SliceToUniqueSortedSlice returns a sorted copy of s with no duplicates.
SliceToUniqueSortedSliceFilterEmptyStrings returns a sorted copy of s with no duplicates and no empty strings.
SnakeCaseWithNewWordOnDigits is a SnakeCaseOption that signifies to split on digits, ie foo_bar_1 instead of foo_bar1.
SplitTrimLines splits the output into individual lines and trims the spaces from each line.
SplitTrimLinesNoEmpty splits the output into individual lines and trims the spaces from each line.
ToLowerSnakeCase transforms s to lower_snake_case.
ToPascalCase converts s to PascalCase.
ToUpperSnakeCase transforms s to UPPER_SNAKE_CASE.
TrimLines splits the output into individual lines and trims the spaces from each line.

# Type aliases

SnakeCaseOption is an option for snake_case conversions.