xconv

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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

func BoolPointer(any interface{}) *bool

func Bools

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

func BoolsPointer

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

func Byte

func Byte(any interface{}) byte

func BytePointer

func BytePointer(any interface{}) *byte

func Bytes

func Bytes(any interface{}) []byte

func BytesPointer

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

func BytesToString

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

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

func Duration

func Duration(any interface{}) time.Duration

func DurationPointer

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

func Durations

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

func DurationsPointer

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

func Float32

func Float32(any interface{}) float32

func Float32Pointer

func Float32Pointer(any interface{}) *float32

func Float32s

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

func Float32sPointer

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

func Float64

func Float64(any interface{}) float64

func Float64Pointer

func Float64Pointer(any interface{}) *float64

func Float64s

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

func Float64sPointer

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

func Int

func Int(any interface{}) int

func Int16

func Int16(any interface{}) int16

func Int16Pointer

func Int16Pointer(any interface{}) *int16

func Int16s

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

func Int16sPointer

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

func Int32

func Int32(any interface{}) int32

func Int32Pointer

func Int32Pointer(any interface{}) *int32

func Int32s

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

func Int32sPointer

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

func Int64

func Int64(any interface{}) int64

func Int64Pointer

func Int64Pointer(any interface{}) *int64

func Int64s

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

func Int64sPointer

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

func Int8

func Int8(any interface{}) int8

func Int8Pointer

func Int8Pointer(any interface{}) *int8

func Int8s

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

func Int8sPointer

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

func IntPointer

func IntPointer(any interface{}) *int

func Interfaces

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

func InterfacesPointer

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

func Ints

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

func IntsPointer

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

func String

func String(any interface{}) string

func StringPointer

func StringPointer(any interface{}) *string

func StringToBytes

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

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

func Strings

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

func StringsPointer

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

func Uint

func Uint(any interface{}) uint

func Uint16

func Uint16(any interface{}) uint16

func Uint16Pointer

func Uint16Pointer(any interface{}) *uint16

func Uint16s

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

func Uint16sPointer

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

func Uint32

func Uint32(any interface{}) uint32

func Uint32Pointer

func Uint32Pointer(any interface{}) *uint32

func Uint32s

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

func Uint32sPointer

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

func Uint64

func Uint64(any interface{}) uint64

func Uint64Pointer

func Uint64Pointer(any interface{}) *uint64

func Uint64s

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

func Uint64sPointer

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

func Uint8

func Uint8(any interface{}) uint8

func Uint8Pointer

func Uint8Pointer(any interface{}) *uint8

func Uint8s

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

func Uint8sPointer

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

func UintPointer

func UintPointer(any interface{}) *uint

func Uints

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

Uints 任何类型转uint切片

func UintsPointer

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