Documentation ¶
Index ¶
- Constants
- func Abs(value int) int
- func Abs32(value int32) int32
- func Abs64(value int64) int64
- func Format(v int) string
- func Format16(v int16) string
- func Format32(v int32) string
- func Format64(v int64) string
- func Format8(v int8) string
- func FormatUnsigned(v uint) string
- func FormatUnsigned16(v uint16) string
- func FormatUnsigned32(v uint32) string
- func FormatUnsigned64(v uint64) string
- func FormatUnsigned8(v uint8) string
- func Max(value1, value2 int) int
- func Max32(value1, value2 int32) int32
- func Max64(value1, value2 int64) int64
- func MaxUnsigned(value1, value2 uint) uint
- func MaxUnsigned16(value1, value2 uint16) uint16
- func MaxUnsigned32(value1, value2 uint32) uint32
- func MaxUnsigned64(value1, value2 uint64) uint64
- func Min(value1, value2 int) int
- func Min32(value1, value2 int32) int32
- func Min64(value1, value2 int64) int64
- func MinUnsigned(value1, value2 uint) uint
- func MinUnsigned16(value1, value2 uint16) uint16
- func MinUnsigned32(value1, value2 uint32) uint32
- func MinUnsigned64(value1, value2 uint64) uint64
- func Parse(str string) (int, error)
- func Parse16(str string) (int16, error)
- func Parse32(str string) (int32, error)
- func Parse64(str string) (int64, error)
- func Parse8(str string) (int8, error)
- func ParseUnsigned(str string) (uint, error)
- func ParseUnsigned16(str string) (uint16, error)
- func ParseUnsigned32(str string) (uint32, error)
- func ParseUnsigned64(str string) (uint64, error)
- func ParseUnsigned8(str string) (uint8, error)
- func SafeParse(str string, defaultValue int) int
- func SafeParse16(str string, defaultValue int16) int16
- func SafeParse32(str string, defaultValue int32) int32
- func SafeParse64(str string, defaultValue int64) int64
- func SafeParse8(str string, defaultValue int8) int8
- func SafeParseUnsigned(str string, defaultValue uint) uint
- func SafeParseUnsigned16(str string, defaultValue uint16) uint16
- func SafeParseUnsigned32(str string, defaultValue uint32) uint32
- func SafeParseUnsigned64(str string, defaultValue uint64) uint64
- func SafeParseUnsigned8(str string, defaultValue uint8) uint8
Constants ¶
const MaxInt = int(MaxUint >> 1)
const MaxUint = ^uint(0)
const MinInt = -MaxInt - 1
const MinUint = 0
Variables ¶
This section is empty.
Functions ¶
func FormatUnsigned16 ¶
FormatUnsigned16 convert uint16 to str
func FormatUnsigned32 ¶
FormatUnsigned32 convert uint32 to str
func FormatUnsigned64 ¶
FormatUnsigned64 convert uint64 to str
func MaxUnsigned ¶
MaxUnsigned return bigger one of uint values
func MaxUnsigned16 ¶
MaxUnsigned16 return bigger one of uint16 values
func MaxUnsigned32 ¶
MaxUnsigned32 return bigger one of uint32 values
func MaxUnsigned64 ¶
MaxUnsigned64 return bigger one of uint64 values
func MinUnsigned ¶
MinUnsigned return smaller one of int values
func MinUnsigned16 ¶
MinUnsigned16 return smaller one of uint16 values
func MinUnsigned32 ¶
MinUnsigned32 return smaller one of uint32 values
func MinUnsigned64 ¶
MinUnsigned64 return smaller one of uint64 values
func ParseUnsigned ¶
ParseUnsigned convert str to uint. if str is not a illegal uint value representation, return defaultValue
func ParseUnsigned16 ¶
ParseUnsigned16 convert str to uint16. if str is not a illegal uint value representation, return defaultValue
func ParseUnsigned32 ¶
ParseUnsigned32 convert str to uint32. if str is not a illegal uint value representation, return defaultValue
func ParseUnsigned64 ¶
ParseUnsigned64 convert str to uint64. if str is not a illegal uint value representation, return defaultValue
func ParseUnsigned8 ¶
ParseUnsigned8 convert str to uint8. if str is not a illegal uint value representation, return defaultValue
func SafeParse ¶
SafeParse convert str to int. if str is not a illegal int value representation, return defaultValue
func SafeParse16 ¶
SafeParse16 convert str to int16. if str is not a illegal int value representation, return defaultValue
func SafeParse32 ¶
SafeParse32 convert str to int32. if str is not a illegal int value representation, return defaultValue
func SafeParse64 ¶
SafeParse64 convert str to int64. if str is not a illegal int value representation, return defaultValue
func SafeParse8 ¶
SafeParse8 convert str to int8. if str is not a illegal int value representation, return defaultValue
func SafeParseUnsigned ¶
SafeParseUnsigned convert str to uint. if str is not a illegal uint value representation, return defaultValue
func SafeParseUnsigned16 ¶
SafeParseUnsigned16 convert str to uint16. if str is not a illegal uint value representation, return defaultValue
func SafeParseUnsigned32 ¶
SafeParseUnsigned32 convert str to uint32. if str is not a illegal uint value representation, return defaultValue
func SafeParseUnsigned64 ¶
SafeParseUnsigned64 convert str to uint64. if str is not a illegal uint value representation, return defaultValue
func SafeParseUnsigned8 ¶
SafeParseUnsigned8 convert str to uint8. if str is not a illegal uint value representation, return defaultValue
Types ¶
This section is empty.