package
1.3.48
Repository: https://github.com/sandwich-go/boost.git
Documentation: pkg.go.dev

# README

xconv

内置类型转换辅助工具

例子

fmt.Println(Bool("3"))
fmt.Println(Bool(""))
fmt.Println(Uint("3"))

Output:

true
false
3

# Functions

Bool [影响性能] converts `any` to bool.
Float32 converts `any` to float32.
Float64 [影响性能] converts `any` to float64.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Int converts `any` to int.
Int16 converts `any` to int16.
Int32 [影响性能] converts `any` to int32.
Int64 converts `any` to int64.
Int8 converts `any` to int8.
LeFillUpSize 当b位数不够时,进行高位补0。 注意这里为了不影响原有输入参数,是采用的值复制设计。.
LittleEndianDecodeToFloat32 bytes to float32 use little-endian.
LittleEndianDecodeToFloat64 bytes to float64 use little-endian.
LittleEndianDecodeToInt64 bytes to int64 use little-endian.
LittleEndianDecodeToUint64 bytes to uint64 use little-endian.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String [影响性能] converts `any` to string.
Uint converts `any` to uint.
Uint16 converts `any` to uint16.
Uint32 converts `any` to uint32.
Uint64 converts `any` to uint64.
Uint8 converts `any` to uint8.