Documentation
¶
Index ¶
- func FormatInt16ToString(i int16, base int) string
- func FormatInt32ToString(i int32, base int) string
- func FormatInt64ToString(i int64, base int) string
- func FormatInt8ToString(i int8, base int) string
- func FormatIntToString(i int, base int) string
- func FormatUint16ToString(i uint16, base int) string
- func FormatUint32ToString(i uint32, base int) string
- func FormatUint64ToString(i uint64, base int) string
- func FormatUint8ToString(i uint8, base int) string
- func IntToString(i int) string
- func ParseStringToInt(str string) (int, error)
- func ParseStringToInt32(str string) (int32, error)
- func ParseStringToInt32WithDefault(str string, def int32) int32
- func ParseStringToInt64(str string) (int64, error)
- func ParseStringToInt64WithDefault(str string, def int64) int64
- func ParseStringToIntWithDefault(str string, def int) int
- func ParseToInt(obj interface{}) (int, error)
- func ParseToInt32(src interface{}) (int32, error)
- func ParseToInt32WithDefault(src interface{}, def int32) int32
- func ParseToInt64(src interface{}) (int64, error)
- func ParseToInt64WithDefault(src interface{}, def int64) int64
- func ParseToIntWithDefault(obj interface{}, def int) int
- type Integer
- type Integer32
- type Integer64
- type UnsignedInteger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatUint16ToString ¶
FormatUint16ToString 类型转换: uint16 => string
@param base 进制(有效值: [2, 36])
func FormatUint32ToString ¶
FormatUint32ToString 类型转换: uint32 => string
@param base 进制(有效值: [2, 36])
func FormatUint64ToString ¶
FormatUint64ToString 类型转换: uint64 => string
@param base 进制(有效值: [2, 36])
func IntToString ¶
func ParseStringToInt ¶
ParseStringToInt 类型转换: string => int
func ParseStringToInt32 ¶
ParseStringToInt32 类型转换: string => int32
func ParseStringToInt32WithDefault ¶
ParseStringToInt32WithDefault 类型转换: string => int
func ParseStringToInt64 ¶
ParseStringToInt64 类型转换: string => int64
func ParseStringToInt64WithDefault ¶
ParseStringToInt64WithDefault 类型转换: string => int
func ParseStringToIntWithDefault ¶
ParseStringToIntWithDefault 类型转换: string => int
func ParseToInt ¶
func ParseToInt32 ¶
func ParseToInt32WithDefault ¶
func ParseToInt64 ¶
func ParseToInt64WithDefault ¶
func ParseToIntWithDefault ¶
Types ¶
type Integer32 ¶
type Integer32 struct {
// contains filtered or unexported fields
}
func NewInteger32 ¶
type Integer64 ¶
type Integer64 struct {
// contains filtered or unexported fields
}
func NewInteger64 ¶
type UnsignedInteger ¶
type UnsignedInteger struct {
// contains filtered or unexported fields
}
UnsignedInteger 无符号整数
func NewUnsignedInteger ¶
func NewUnsignedInteger(value uint) *UnsignedInteger
func (*UnsignedInteger) GetValue ¶
func (c *UnsignedInteger) GetValue() uint
Click to show internal directories.
Click to hide internal directories.