xconv

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(any interface{}) bool

func BoolPointer added in v0.0.6

func BoolPointer(any interface{}) *bool

func Bools

func Bools(any interface{}) (slice []bool)

func BoolsPointer added in v0.0.6

func BoolsPointer(any interface{}) *[]bool

func Byte

func Byte(any interface{}) byte

func BytePointer added in v0.0.6

func BytePointer(any interface{}) *byte

func Bytes

func Bytes(any interface{}) []byte

func BytesPointer added in v0.0.6

func BytesPointer(any interface{}) *[]byte

func BytesToString

func BytesToString(b []byte) (s string)

BytesToString 字节数组无拷贝转字符串

func Duration

func Duration(any interface{}) time.Duration

func DurationPointer added in v0.0.6

func DurationPointer(any interface{}) *time.Duration

func Durations

func Durations(any interface{}) (slice []time.Duration)

func DurationsPointer added in v0.0.6

func DurationsPointer(any interface{}) *[]time.Duration

func Float32

func Float32(any interface{}) float32

func Float32Pointer added in v0.0.6

func Float32Pointer(any interface{}) *float32

func Float32s

func Float32s(any interface{}) (slice []float32)

func Float32sPointer added in v0.0.6

func Float32sPointer(any interface{}) *[]float32

func Float64

func Float64(any interface{}) float64

func Float64Pointer added in v0.0.6

func Float64Pointer(any interface{}) *float64

func Float64s

func Float64s(any interface{}) (slice []float64)

func Float64sPointer added in v0.0.6

func Float64sPointer(any interface{}) *[]float64

func Int

func Int(any interface{}) int

func Int16

func Int16(any interface{}) int16

func Int16Pointer added in v0.0.6

func Int16Pointer(any interface{}) *int16

func Int16s

func Int16s(any interface{}) (slice []int16)

func Int16sPointer added in v0.0.6

func Int16sPointer(any interface{}) *[]int16

func Int32

func Int32(any interface{}) int32

func Int32Pointer added in v0.0.6

func Int32Pointer(any interface{}) *int32

func Int32s

func Int32s(any interface{}) (slice []int32)

func Int32sPointer added in v0.0.6

func Int32sPointer(any interface{}) *[]int32

func Int64

func Int64(any interface{}) int64

func Int64Pointer added in v0.0.6

func Int64Pointer(any interface{}) *int64

func Int64s

func Int64s(any interface{}) (slice []int64)

func Int64sPointer added in v0.0.6

func Int64sPointer(any interface{}) *[]int64

func Int8

func Int8(any interface{}) int8

func Int8Pointer added in v0.0.6

func Int8Pointer(any interface{}) *int8

func Int8s

func Int8s(any interface{}) (slice []int8)

func Int8sPointer added in v0.0.6

func Int8sPointer(any interface{}) *[]int8

func IntPointer added in v0.0.6

func IntPointer(any interface{}) *int

func Interfaces

func Interfaces(any interface{}) (slice []interface{})

func InterfacesPointer added in v0.0.6

func InterfacesPointer(any interface{}) *[]interface{}

func Ints

func Ints(any interface{}) (slice []int)

func IntsPointer added in v0.0.6

func IntsPointer(any interface{}) *[]int

func String

func String(any interface{}) string

func StringPointer added in v0.0.6

func StringPointer(any interface{}) *string

func StringToBytes

func StringToBytes(s string) (b []byte)

StringToBytes 字符串无拷贝转字节数组

func Strings

func Strings(any interface{}) (slice []string)

func StringsPointer added in v0.0.6

func StringsPointer(any interface{}) *[]string

func Uint

func Uint(any interface{}) uint

func Uint16

func Uint16(any interface{}) uint16

func Uint16Pointer added in v0.0.6

func Uint16Pointer(any interface{}) *uint16

func Uint16s

func Uint16s(any interface{}) (slice []uint16)

func Uint16sPointer added in v0.0.6

func Uint16sPointer(any interface{}) *[]uint16

func Uint32

func Uint32(any interface{}) uint32

func Uint32Pointer added in v0.0.6

func Uint32Pointer(any interface{}) *uint32

func Uint32s

func Uint32s(any interface{}) (slice []uint32)

func Uint32sPointer added in v0.0.6

func Uint32sPointer(any interface{}) *[]uint32

func Uint64

func Uint64(any interface{}) uint64

func Uint64Pointer added in v0.0.6

func Uint64Pointer(any interface{}) *uint64

func Uint64s

func Uint64s(any interface{}) (slice []uint64)

func Uint64sPointer added in v0.0.6

func Uint64sPointer(any interface{}) *[]uint64

func Uint8

func Uint8(any interface{}) uint8

func Uint8Pointer added in v0.0.6

func Uint8Pointer(any interface{}) *uint8

func Uint8s

func Uint8s(any interface{}) (slice []uint8)

func Uint8sPointer added in v0.0.6

func Uint8sPointer(any interface{}) *[]uint8

func UintPointer added in v0.0.6

func UintPointer(any interface{}) *uint

func Uints

func Uints(any interface{}) (slice []uint)

Uints 任何类型转uint切片

func UintsPointer added in v0.0.6

func UintsPointer(any interface{}) *[]uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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