integer

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 3 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 Int32TAny

func Int32TAny(v interface{}) interface{}

func Int32ToInt

func Int32ToInt(v int32) int

func Int32ToInt64

func Int32ToInt64(v int32) int64

func Int64TAny

func Int64TAny(v interface{}) interface{}

func Int64ToInt

func Int64ToInt(v int64) int

func Int64ToInt32

func Int64ToInt32(v int64) int32

func IntSlice2Any

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

func IntToInt32

func IntToInt32(v int) int32

func IntToInt64

func IntToInt64(v int) int64

func MustAny2Int

func MustAny2Int(v interface{}) int

func MustAny2Int32

func MustAny2Int32(v interface{}) int32

func MustAny2Int64

func MustAny2Int64(v interface{}) int64

func MustStr2Int

func MustStr2Int(v string) int

func MustStr2Int32

func MustStr2Int32(v string) int32

func MustStr2Int64

func MustStr2Int64(v string) int64

func SliceAny2Int32

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

func SliceAny2Int64

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

func SliceInt32Equal

func SliceInt32Equal(v1, v2 []int32) bool

func SliceInt32EqualStrict

func SliceInt32EqualStrict(v1, v2 []int32) bool

func SliceInt32TAny

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

func SliceInt64Equal

func SliceInt64Equal(v1, v2 []int64) bool

func SliceInt64EqualStrict

func SliceInt64EqualStrict(v1, v2 []int64) bool

func SliceInt64TAny

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

func SliceIntEqual

func SliceIntEqual(v1, v2 []int) bool

func SliceIntEqualStrict

func SliceIntEqualStrict(v1, v2 []int) bool

func Str2Int

func Str2Int(v string) (int, error)

func Str2Int32

func Str2Int32(v string) (int32, error)

func Str2Int64

func Str2Int64(v string) (int64, error)

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