Documentation
¶
Index ¶
- func B2S(b []byte) string
- func BtoS(b []byte) (s string)
- func BtoU4(b []byte) (i []uint32)
- func BtoU8(b []byte) (i []uint64)
- func ByteSize(bytes uint64) string
- func Copy(x []byte) []byte
- func CopyBytes(b []byte) []byte
- func CopyString(s string) string
- func Map[K comparable, S, D any](src map[K]S, convert func(S) D) map[K]D
- func MapL[A comparable, B any](src []A, convert func(A) B) []B
- func S2B(s string) []byte
- func StoB(s string) (b []byte)
- func StoU4(s string) (i []uint32)
- func StoU8(s string) (i []uint64)
- func ToString(arg any, timeFormat ...string) string
- 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)
- type Slice
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSize ¶
ByteSize returns a human-readable byte string of the form 10M, 12.5K, and so forth. The unit that results in the smallest number greater than or equal to 1 is always chosen.
func Map ¶
func Map[K comparable, S, D any](src map[K]S, convert func(S) D) map[K]D
func MapL ¶
func MapL[A comparable, B any](src []A, convert func(A) B) []B
Types ¶
Click to show internal directories.
Click to hide internal directories.