Versions in this module Expand all Collapse all v0 v0.2.10-3 Oct 27, 2022 v0.2.10-2 Sep 27, 2022 v0.2.10-1 Sep 19, 2022 v0.2.2 Jun 9, 2022 v0.2.1 May 8, 2022 v0.2.0 May 1, 2022 Changes in this version + func FirstFnNotEmpty(fx ...func() string) string type String + func B2S(b []byte) (ss []String) v0.1.27 Apr 3, 2022 v0.1.26 Mar 31, 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 FirstNotEmpty(fx ...func() string) string + func GetDefault(names ...string) string + func IfEmpty(str string, fx func()) + func InsideTest() bool + func Memviz(is ...interface{}) []byte + func NotEmpty(strs ...string) string + 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 B2Strs(b []byte) (ss []String) + func U4toStrs(i []uint32) (ss []String) + func U8toStrs(i []uint64) (ss []String)