package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

CombineRunsets combines given runsets into a single runset.
CompressSpace compresses whitespace characters into single spaces.
CSV produces a csv from a given set of values.
EqualsCaseless compares two strings regardless of case.
FileSize returns a string representation of a file size in bytes.
Fixed returns a fixed width, right aligned, string with a given minimum space padded width.
FixedLeft returns a fixed width, left aligned, string with a given minimum space padded width.
Glob returns if a subject matches a given pattern.
GlobAny tests if a file matches a (potentially) csv of glob filters.
HasPrefixCaseless returns if a corpus has a prefix regardless of casing.
HasSuffixCaseless returns if a corpus has a suffix regardless of casing.
Indent applies an indent prefix to a given corpus except the first line.
IndentLines adds a prefix to a given list of strings except the first string.
MustParseBool parses a boolean value and panics if there is an error.
OptSplitLinesIncludeEmptyLines sets if we should omit newlines in the returned lines.
OptSplitLinesIncludeNewLine sets if we should omit newlines in the returned lines.
ParseBool parses a given string as a boolean value.
Random returns a random selection of runes from the set.
ReplaceAny replaces any runes in the 'replaced' list with a given replacement.
ReplacePathParameters will replace path parameters in a URL path with values from the passed in `params` map.
Slugify replaces non-letter or digit runes with '-'.
SplitCSV splits a corpus by the `,`.
SplitLines splits a corpus into individual lines by the ascii control character `\n`.
SplitSpace splits a string on whitespace.
SplitSpaceQuoted splits a corpus on space but treats quoted strings i.e.
Title returns a string in title case.
Tokenize replaces a given set of tokens in a corpus.
TrimLen trims a string to a given length, i.e.
TrimPrefixCaseless trims a prefix from a corpus ignoring case.
TrimSuffixCaseless trims a case insensitive suffix from a corpus.
TSV produces a tab seprated values from a given set of values.

# Constants

Empty is the empty string.
Error Constants.
Error Constants.
GlobStar is the "match anything" constant.
LowerA is the ascii int value for 'a'.
LowerZ is the ascii int value for 'z'.
RuneNewline is a single rune representing a newline.
RuneSpace is a single rune representing a space.

# Variables

Letters is a runset of both lower and uppercase letters.
LettersAndNumbers is a runset of letters and numeric characters.
LettersNumbersAndSymbols is a runset of letters, numbers and symbols.
LowerDiff is the difference between lower Z and lower A.
LowerLetters is a runset of lowercase letters.
Numbers is a runset of numeric characters.
Symbols is a runset of symbol characters.
UpperLetters is a runset of uppercase letters.

# Structs

SplitLinesOptions are options for the SplitLines function.

# Type aliases

Runeset is a set of runes.
SplitLinesOption is a mutator for SplitLinesOptions.
Tokens is a soft alias to map[string]string.