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 ParseBytes(s string) []byte
- func ParseFloat32(value string) float32
- func ParseFloat64(value string) float64
- func ParseInt(value string) int
- func ParseInt16(value string) int16
- func ParseInt32(value string) int32
- func ParseInt64(value string) int64
- func ParseInt8(value string) int8
- func ParseUint(value string) uint
- func ParseUint16(value string) uint16
- func ParseUint32(value string) uint32
- func ParseUint64(value string) uint64
- func ParseUint8(value string) uint8
- type Binaries
- type Binary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBytes ¶ added in v0.0.16
ParseBytes 通过go 1.22新函数 将字符串转换为字节数组 不进行内存分配高性能 存在不安全性,共享底层数据
func ParseFloat32 ¶ added in v0.0.16
ParseFloat32 将字符串转换为float32
func ParseFloat64 ¶ added in v0.0.16
ParseFloat64 将字符串转换为float64
Types ¶
type Binary ¶
type Binary struct {
// contains filtered or unexported fields
}
Binary 定义二进制值
func NewFromRawBinary ¶
NewFromRawBinary 通过原始二进制值转换 010010110101
func NewFromRawHex ¶
NewFromRawHex 通过指定的原始hex值转换 ff
Click to show internal directories.
Click to hide internal directories.