package
1.1.2
Repository: https://github.com/gocarp/helpers.git
Documentation: pkg.go.dev

# Functions

CanCallIsNil Can reflect.Value call reflect.Value.IsNil.
EqualFoldWithoutChars checks string `s1` and `s2` equal case-insensitively, with/without chars '-'/'_'/'.'/' '.
FormatCmdKey formats string `s` as command key using uniformed format.
FormatEnvKey formats string `s` as environment key using uniformed format.
IsArray checks whether given value is array/slice.
IsDebugEnabled checks and returns whether debug mode is enabled.
IsEmpty checks whether `value` is empty.
IsFloat checks whether `value` is type of float.
IsInt checks whether `value` is type of int.
IsLetter checks whether the given byte b is a letter.
IsLetterLower checks whether the given byte b is in lower case.
IsLetterUpper checks whether the given byte b is in upper case.
IsMap checks whether `value` is type of map.
IsNil checks whether `value` is nil, especially for interface{} type value.
IsNumeric checks whether the given string s is numeric.
IsSlice checks whether `value` is type of slice.
IsStruct checks whether `value` is type of struct.
IsUint checks whether `value` is type of uint.
ListToMapByKey converts `list` to a map[string]interface{} of which key is specified by `key`.
MapContainsPossibleKey checks if the given `key` is contained in given map `data`.
MapPossibleItemByKey tries to find the possible key-value pair for given key ignoring cases and symbols.
NewReadCloser creates and returns a RepeatReadCloser object.
RemoveSymbols removes all symbols from string and lefts only numbers and letters.
ReplaceByMap returns a copy of `origin`, which is replaced by a map in unordered way, case-sensitively.
SetDebugEnabled enables/disables the internal debug info.
SplitAndTrim splits string `str` by a string `delimiter` to an array, and calls Trim to every element of this array.
StripSlashes un-quotes a quoted string by AddSlashes.
Trim strips whitespace (or other characters) from the beginning and end of a string.
UcFirst returns a copy of the string s with the first letter mapped to its upper case.

# Variables

DefaultTrimChars are the characters which are stripped by Trim* functions in default.

# Structs

ReadCloser implements the io.ReadCloser interface which is used for reading request body content multiple times.