# Functions
Abbreviate abbreviates s to almost n runes.
Abs returns the absolute value of x.
Base64 returns the base64 encoding of s.
Capitalize returns a copy of the string s with the first non-separator in upper case.
CapitalizeAll returns a copy of the string s with the first letter of each word in upper case.
Date returns the time corresponding to the given date with time zone determined by location.
FormatFloat converts the floating-point number f to a string, according to the given format and precision.
FormatInt returns the string representation of i in the given base, for 2 <= base <= 36.
HasPrefix tests whether the string s begins with prefix.
HasSuffix tests whether the string s ends with suffix.
Hex returns the hexadecimal encoding of s.
HmacSHA1 returns the HMAC-SHA1 tag for the given message and key, as a base64 encoded string.
HmacSHA256 returns the HMAC-SHA256 tag for the given message and key, as a base64 encoded string.
HtmlEscape escapes s, replacing the characters <, >, &, " and ' and returns the escaped string as native.HTML type.
Index returns the index of the first instance of substr in s, or -1 if substr is not present in s.
IndexAny returns the index of the first instance of any Unicode code point from chars in s, or -1 if no Unicode code point from chars is present in s.
Join concatenates the elements of its first argument to create a single string.
LastIndex returns the index of the last instance of substr in s, or -1 if substr is not present in s.
MarshalJSON returns the JSON encoding of v.
MarshalJSONIndent is like MarshalJSON but indents the output.
MarshalYAML returns the YAML encoding of v.
Max returns the larger of x or y.
Md5 returns the MD5 checksum of s as a hexadecimal encoded string.
Min returns the smaller of x or y.
NewFormData returns a new FormData value.
NewTime returns a Time value at the time of t.
Now returns the current local time.
ParseDuration parses a duration string.
ParseFloat converts the string s to a float64 value.
ParseInt interprets a string s in the given base, for 2 <= base <= 36, and returns the corresponding value.
ParseTime parses a formatted string and returns the time value it represents.
Pow returns x**y.
QueryEscape escapes the string, so it can be safely placed inside a URL query.
RegExp parses a regular expression and returns a Regexp value that can be used to match against text.
Replace returns a copy of the string s with the first n non-overlapping instances of old replaced by new.
ReplaceAll returns a copy of the string s with all non-overlapping instances of old replaced by new.
Reverse reverses the order of the elements of slice.
RuneCount returns the number of runes in s.
Sha1 returns the SHA1 checksum of s as a hexadecimal encoded string.
Sha256 returns the SHA256 checksum of s as a hexadecimal encoded string.
Sort the elements of slice given the provided less function.
Split slices s into all substrings separated by sep and returns a slice of the substrings between those separators.
SplitAfter slices s into all substrings after each instance of sep and returns a slice of those substrings.
SplitAfterN slices s into substrings after each instance of sep and returns a slice of those substrings.
SplitN slices s into substrings separated by sep and returns a slice of the substrings between those separators.
Sprint formats using the default formats for its operands and returns the resulting string.
Sprintf formats according to a format specifier and returns the resulting string.
ToKebab returns a copy of the string s in kebab case form.
ToLower returns s with all Unicode letters mapped to their lower case.
ToUpper returns s with all Unicode letters mapped to their upper case.
Trim returns a slice of the string s with all leading and trailing Unicode code points contained in cutset removed.
TrimLeft returns a slice of the string s with all leading Unicode code points contained in cutset removed.
TrimPrefix returns s without the provided leading prefix string.
TrimRight returns a slice of the string s, with all trailing Unicode code points contained in cutset removed.
TrimSuffix returns s without the provided trailing suffix string.
UnixTime returns the local Time corresponding to the given Unix time, sec seconds and nsec nanoseconds since January 1, 1970 UTC.
UnmarshalJSON parses the JSON-encoded data and stores the result in a new value pointed to by v.
UnmarshalYAML parses the YAML-encoded data and stores the result in a new value pointed to by v.
# Variables
ErrBadRequest is the error that occurs when parsing a malformed HTTP request body or query string in FormData methods.
ErrRequestEntityTooLarge is the error that occurs when the HTTP request's body is too large.
Unsafeconv provides a package that implements functions to make unsafe conversions between string values and native types.
# Type aliases
A Duration represents the elapsed time between two instants as an int64 nanosecond count.