package
0.0.0-20220908082318-a00ab9601e1c
Repository: https://github.com/cilidm/toolbox.git
Documentation: pkg.go.dev
# Functions
Bool converts <i> to bool.
Byte converts <i> to byte.
Bytes converts <i> to []byte.
Convert converts the variable <i> to the type <t>, the type <t> is specified by string.
Float32 converts <i> to float32.
Float32s converts <i> to []float32.
Float64 converts <i> to float64.
Float64s converts <i> to []float64.
Floats converts <i> to []float64.
Int converts <i> to int.
Int16 converts <i> to int16.
Int32 converts <i> to int32.
Int32s converts <i> to []int32.
Int64 converts <i> to int64.
Int64s converts <i> to []int64.
Int8 converts <i> to int8.
Interfaces converts <i> to []interface{}.
Ints converts <i> to []int.
IsArray checks whether given value is array/slice.
IsEmpty checks whether given <value> empty.
IsLetterLower tests whether the given byte b is in lower case.
IsLetterUpper tests whether the given byte b is in upper case.
IsNil checks whether given <value> is nil.
IsNumeric tests whether the given string s is numeric.
ReplaceByMap returns a copy of <origin>, which is replaced by a map in unordered way, case-sensitively.
Rune converts <i> to rune.
Runes converts <i> to []rune.
SliceAny is alias of Interfaces.
SliceFloat is alias of Floats.
SliceFloat32 is alias of Float32s.
SliceFloat64 is alias of Float64s.
SliceInt is alias of Ints.
SliceInt32 is alias of Int32s.
SliceInt is alias of Int64s.
SliceStr is alias of Strings.
SliceUint is alias of Uints.
SliceUint32 is alias of Uint32s.
SliceUint64 is alias of Uint64s.
String converts <i> to string.
Strings converts <i> to []string.
UcFirst returns a copy of the string s with the first letter mapped to its upper case.
Uint converts <i> to uint.
Uint16 converts <i> to uint16.
Uint32 converts <i> to uint32.
Uint32s converts <i> to []uint32.
Uint64 converts <i> to uint64.
Uint64s converts <i> to []uint64.
Uint8 converts <i> to uint8.
Uints converts <i> to []uint.
UnsafeBytesToStr converts []byte to string without memory copy.
UnsafeStrToBytes converts string to []byte without memory copy.