Documentation ¶
Index ¶
- func FromBytes(bytes []byte) string
- func FromFloat32(value float32) string
- func FromFloat64(value float64) string
- func FromInt(value int) string
- func FromInt16(value int16) string
- func FromInt32(value int32) string
- func FromInt64(value int64) string
- func FromInt8(value int8) string
- func FromUint(value uint) string
- func FromUint16(value uint16) string
- func FromUint32(value uint32) string
- func FromUint64(value uint64) string
- func FromUint8(value uint8) string
- func ParesBytesFromHex(s string) []byte
- func ParseBytes(s string) []byte
- func ParseFloat32(value string) float32
- func ParseFloat32Panic(value string) float32
- func ParseFloat64(value string) float64
- func ParseFloat64Panic(value string) float64
- func ParseInt(value string) int
- func ParseInt16(value string) int16
- func ParseInt16Panic(value string) int16
- func ParseInt32(value string) int32
- func ParseInt32Panic(value string) int32
- func ParseInt64(value string) int64
- func ParseInt64Panic(value string) int64
- func ParseInt8(value string) int8
- func ParseInt8Panic(value string) int8
- func ParseIntPanic(value string) int
- func ParseUint(value string) uint
- func ParseUint16(value string) uint16
- func ParseUint16Panic(value string) uint16
- func ParseUint32(value string) uint32
- func ParseUint32Panic(value string) uint32
- func ParseUint64(value string) uint64
- func ParseUint64Panic(value string) uint64
- func ParseUint8(value string) uint8
- func ParseUint8Panic(value string) uint8
- func ParseUintPanic(value string) uint
- type Binaries
- type Binary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParesBytesFromHex ¶ added in v0.0.20
ParesBytesFromHex 将hex编码的字符串转换成字节数组
func ParseBytes ¶ added in v0.0.16
ParseBytes 通过go 1.22新函数 将字符串转换为字节数组 不进行内存分配高性能 存在不安全性,共享底层数据
func ParseFloat32 ¶ added in v0.0.16
ParseFloat32 将字符串转换为float32
func ParseFloat32Panic ¶ added in v0.0.32
ParseFloat32Panic 将字符串转换为float32 异常将触发panic
func ParseFloat64 ¶ added in v0.0.16
ParseFloat64 将字符串转换为float64
func ParseFloat64Panic ¶ added in v0.0.32
ParseFloat64Panic 将字符串转换为float64 异常将触发panic
func ParseInt16Panic ¶ added in v0.0.32
ParseInt16Panic 将字符串转换为int16 异常将触发panic
func ParseInt32Panic ¶ added in v0.0.32
ParseInt32Panic 将字符串转换为int32 异常将触发panic
func ParseInt64Panic ¶ added in v0.0.32
ParseInt64Panic 将字符串转换为int64 异常将触发panic
func ParseInt8Panic ¶ added in v0.0.32
ParseInt8Panic 将字符串转换为int8 异常将触发panic
func ParseIntPanic ¶ added in v0.0.32
ParseIntPanic 将字符串转换为int 异常将触发panic
func ParseUint16Panic ¶ added in v0.0.32
ParseUint16Panic 将字符串转换为uint16 异常将触发panic
func ParseUint32Panic ¶ added in v0.0.32
ParseUint32Panic 将字符串转换为uint32 异常将触发panic
func ParseUint64Panic ¶ added in v0.0.32
ParseUint64Panic 将字符串转换为uint64 异常将触发panic
func ParseUint8Panic ¶ added in v0.0.32
ParseUint8Panic 将字符串转换为uint8 异常将触发panic
func ParseUintPanic ¶ added in v0.0.32
ParseUintPanic 将字符串转换为uint 异常将触发panic
Types ¶
type Binaries ¶
type Binaries []*Binary
Binaries 定义二进制数组
func NewFromBytes ¶ added in v0.0.32
NewFromBytes 通过bytes转换
type Binary ¶
type Binary struct {
// contains filtered or unexported fields
}
Binary 定义二进制值
func NewFromRawBinary ¶
NewFromRawBinary 通过原始二进制值转换 010010110101
func NewFromRawHex ¶
NewFromRawHex 通过指定的原始hex值转换 ff