intKit

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatInt16ToString

func FormatInt16ToString(i int16, base int) string

FormatInt16ToString 类型转换: int16 => string

@param base 进制(有效值: [2, 36])

func FormatInt32ToString

func FormatInt32ToString(i int32, base int) string

FormatInt32ToString 类型转换: int32 => string

@param base 进制(有效值: [2, 36])

func FormatInt64ToString

func FormatInt64ToString(i int64, base int) string

FormatInt64ToString 类型转换: int64 => string

@param base 进制(有效值: [2, 36])

func FormatInt8ToString

func FormatInt8ToString(i int8, base int) string

FormatInt8ToString 类型转换: int8 => string

@param base 进制(有效值: [2, 36])

func FormatIntToString

func FormatIntToString(i int, base int) string

FormatIntToString 类型转换: int => string

@param base 进制(有效值: [2, 36])

func FormatUint16ToString

func FormatUint16ToString(i uint16, base int) string

FormatUint16ToString 类型转换: uint16 => string

@param base 进制(有效值: [2, 36])

func FormatUint32ToString

func FormatUint32ToString(i uint32, base int) string

FormatUint32ToString 类型转换: uint32 => string

@param base 进制(有效值: [2, 36])

func FormatUint64ToString

func FormatUint64ToString(i uint64, base int) string

FormatUint64ToString 类型转换: uint64 => string

@param base 进制(有效值: [2, 36])

func FormatUint8ToString

func FormatUint8ToString(i uint8, base int) string

FormatUint8ToString 类型转换: uint8 => string

@param base 进制(有效值: [2, 36])

func IntToString

func IntToString(i int) string

func ParseStringToInt

func ParseStringToInt(str string) (int, error)

ParseStringToInt 类型转换: string => int

func ParseStringToInt32

func ParseStringToInt32(str string) (int32, error)

ParseStringToInt32 类型转换: string => int32

func ParseStringToInt32WithDefault

func ParseStringToInt32WithDefault(str string, def int32) int32

ParseStringToInt32WithDefault 类型转换: string => int

func ParseStringToInt64

func ParseStringToInt64(str string) (int64, error)

ParseStringToInt64 类型转换: string => int64

func ParseStringToInt64WithDefault

func ParseStringToInt64WithDefault(str string, def int64) int64

ParseStringToInt64WithDefault 类型转换: string => int

func ParseStringToIntWithDefault

func ParseStringToIntWithDefault(str string, def int) int

ParseStringToIntWithDefault 类型转换: string => int

func ParseToInt

func ParseToInt(obj interface{}) (int, error)

func ParseToInt32

func ParseToInt32(src interface{}) (int32, error)

func ParseToInt32WithDefault

func ParseToInt32WithDefault(src interface{}, def int32) int32

func ParseToInt64

func ParseToInt64(src interface{}) (int64, error)

func ParseToInt64WithDefault

func ParseToInt64WithDefault(src interface{}, def int64) int64

func ParseToIntWithDefault

func ParseToIntWithDefault(obj interface{}, def int) int

Types

type Integer

type Integer struct {
	// contains filtered or unexported fields
}

func NewInteger

func NewInteger(value int) *Integer

func (*Integer) GetValue

func (c *Integer) GetValue() int

type Integer32

type Integer32 struct {
	// contains filtered or unexported fields
}

func NewInteger32

func NewInteger32(value int32) *Integer32

func (*Integer32) GetValue

func (c *Integer32) GetValue() int32

type Integer64

type Integer64 struct {
	// contains filtered or unexported fields
}

func NewInteger64

func NewInteger64(value int64) *Integer64

func (*Integer64) GetValue

func (c *Integer64) GetValue() int64

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL