Versions in this module Expand all Collapse all v0 v0.2.10 Jul 7, 2022 v0.2.9 Jul 6, 2022 v0.2.8 Jul 4, 2022 v0.2.7 Jul 2, 2022 v0.2.6 Jul 2, 2022 v0.2.5 Jul 1, 2022 v0.2.4 Jun 22, 2022 v0.2.3 Jun 11, 2022 Changes in this version + const SliceSize + const StrSize + func BtoS(b []byte) (s string) + func BtoU4(b []byte) (i []uint32) + func BtoU8(b []byte) (i []uint64) + func ByteSize(bytes uint64) string + func CmpB(a, b []byte) int + func CmpS(a, b string) (r int) + func CodeFormat(data ...string) string + func Copy(x []byte) []byte + func CopyBytes(b []byte) []byte + func CopyString(s string) string + func Cost(fn func()) (dur time.Duration, err error) + func DirExists(path string) bool + func DotJoin(str ...string) string + func EqualFieldType(out interface{}, kind reflect.Kind, key string) bool + func EqualFold(b, s string) (equals bool) + func EqualFoldBytes(b, s []byte) (equals bool) + func FileExists(path string) bool + func FirstFnNotEmpty(fx ...func() string) string + func FirstNotEmpty(strs ...string) string + func GetDefault(names ...string) string + func IfEmpty(str string, fx func()) + func InsideTest() bool + func Memviz(is ...interface{}) []byte + func StoB(s string) (b []byte) + func StoU4(s string) (i []uint32) + func StoU8(s string) (i []uint64) + func ToLower(b string) string + func ToLowerBytes(b []byte) []byte + func ToUpper(b string) string + func ToUpperBytes(b []byte) []byte + func TransformObject2Param(object interface{}) (params map[string]string) + func Trim(s string, cutset byte) string + func TrimBytes(b []byte, cutset byte) []byte + func TrimLeft(s string, cutset byte) string + func TrimLeftBytes(b []byte, cutset byte) []byte + func TrimRight(s string, cutset byte) string + func TrimRightBytes(b []byte, cutset byte) []byte + func U4toB(i []uint32) (b []byte) + func U4toS(i []uint32) (s string) + func U4toU8(i []uint32) (k []uint64) + func U8toB(i []uint64) (b []byte) + func U8toS(i []uint64) (s string) + func U8toU4(i []uint64) (k []uint32) + func UnsafeBytes(s string) (bs []byte) + func UnsafeString(b []byte) string + type Slice struct + Cap int + Data unsafe.Pointer + Len int + func BtoSlices(b []byte) (ss []Slice) + func U4toSlices(i []uint32) (ss []Slice) + func U8toSlices(i []uint64) (ss []Slice) + type String struct + Data unsafe.Pointer + Len int + func B2S(b []byte) (ss []String) + func U4toStrs(i []uint32) (ss []String) + func U8toStrs(i []uint64) (ss []String)