integer

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any2Int

func Any2Int(v interface{}) (int, error)

func Any2Int32

func Any2Int32(v interface{}) (int32, error)

func Any2Int64

func Any2Int64(v interface{}) (int64, error)

func AnySlice2Int

func AnySlice2Int(vs []interface{}) ([]int, error)

func Int2Any

func Int2Any(v interface{}) interface{}

func Int2Str added in v1.3.8

func Int2Str(v int) string

func Int32TAny

func Int32TAny(v interface{}) interface{}

func Int32ToInt

func Int32ToInt(v int32) int

func Int32ToInt64

func Int32ToInt64(v int32) int64

func Int32ToStr added in v1.3.8

func Int32ToStr(v int32) string

func Int64TAny

func Int64TAny(v interface{}) interface{}

func Int64ToInt

func Int64ToInt(v int64) int

func Int64ToInt32

func Int64ToInt32(v int64) int32

func Int64ToStr added in v1.3.8

func Int64ToStr(v int64) string

func IntSlice2Any

func IntSlice2Any(vs []int) []interface{}

func IntToInt32

func IntToInt32(v int) int32

func IntToInt64

func IntToInt64(v int) int64

func MaxInt added in v1.4.1

func MaxInt(vs ...int) int

func MaxInt32 added in v1.4.1

func MaxInt32(vs ...int32) int32

func MaxInt64 added in v1.4.1

func MaxInt64(vs ...int64) int64

func MinInt added in v1.4.1

func MinInt(vs ...int) int

func MinInt32 added in v1.4.1

func MinInt32(vs ...int32) int32

func MinInt64 added in v1.4.1

func MinInt64(vs ...int64) int64

func MustAny2Int

func MustAny2Int(v interface{}) int

func MustAny2Int32

func MustAny2Int32(v interface{}) int32

func MustAny2Int64

func MustAny2Int64(v interface{}) int64

func MustAnySlice2Int added in v1.4.1

func MustAnySlice2Int(vs []interface{}) []int

func MustAnySlice2Int32 added in v1.4.1

func MustAnySlice2Int32(vs []interface{}) []int32

func MustAnySlice2Int64 added in v1.4.1

func MustAnySlice2Int64(vs []interface{}) []int64

func SliceAny2Int32

func SliceAny2Int32(vs []interface{}) ([]int32, error)

func SliceAny2Int64

func SliceAny2Int64(vs []interface{}) ([]int64, error)

func SliceInt2Int32 added in v1.4.1

func SliceInt2Int32(vs []int) []int32

func SliceInt2Int64 added in v1.4.1

func SliceInt2Int64(vs []int) []int64

func SliceInt32Equal

func SliceInt32Equal(v1, v2 []int32) bool

func SliceInt32EqualStrict

func SliceInt32EqualStrict(v1, v2 []int32) bool

func SliceInt32Int added in v1.4.1

func SliceInt32Int(vs []int32) []int

func SliceInt32TAny

func SliceInt32TAny(vs []int32) []interface{}

func SliceInt32TInt64 added in v1.4.1

func SliceInt32TInt64(vs []int32) []int64

func SliceInt64Equal

func SliceInt64Equal(v1, v2 []int64) bool

func SliceInt64EqualStrict

func SliceInt64EqualStrict(v1, v2 []int64) bool

func SliceInt64TAny

func SliceInt64TAny(vs []int64) []interface{}

func SliceInt64TInt added in v1.4.1

func SliceInt64TInt(vs []int64) []int

func SliceInt64TInt32 added in v1.4.1

func SliceInt64TInt32(vs []int64) []int32

func SliceIntEqual

func SliceIntEqual(v1, v2 []int) bool

func SliceIntEqualStrict

func SliceIntEqualStrict(v1, v2 []int) bool

Types

type Int32Slice

type Int32Slice []int32

func (Int32Slice) Len

func (x Int32Slice) Len() int

func (Int32Slice) Less

func (x Int32Slice) Less(i, j int) bool

func (Int32Slice) Swap

func (x Int32Slice) Swap(i, j int)

type Int64Slice

type Int64Slice []int64

func (Int64Slice) Len

func (x Int64Slice) Len() int

func (Int64Slice) Less

func (x Int64Slice) Less(i, j int) bool

func (Int64Slice) Swap

func (x Int64Slice) Swap(i, j int)

Jump to

Keyboard shortcuts

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