xtype

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

README

xtype

interface type convert

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alloc

func Alloc(typ Type) interface{}

func Bool

func Bool(i interface{}) bool

func Bytes

func Bytes(i interface{}) []byte

func Complex128

func Complex128(i interface{}) complex128

func Complex64

func Complex64(i interface{}) complex64

func ConvertBool

func ConvertBool(typ Type, i interface{}) interface{}

func ConvertComplex128

func ConvertComplex128(typ Type, i interface{}) interface{}

func ConvertComplex64

func ConvertComplex64(typ Type, i interface{}) interface{}

func ConvertDirect

func ConvertDirect(typ Type, i interface{}) interface{}

convert copy

func ConvertFloat32

func ConvertFloat32(typ Type, i interface{}) interface{}

func ConvertFloat64

func ConvertFloat64(typ Type, i interface{}) interface{}

func ConvertFunc added in v0.2.0

func ConvertFunc(fn reflect.Value, typ Type) reflect.Value

func ConvertInt

func ConvertInt(typ Type, i interface{}) interface{}

func ConvertInt16

func ConvertInt16(typ Type, i interface{}) interface{}

func ConvertInt32

func ConvertInt32(typ Type, i interface{}) interface{}

func ConvertInt64

func ConvertInt64(typ Type, i interface{}) interface{}

func ConvertInt8

func ConvertInt8(typ Type, i interface{}) interface{}

func ConvertPtr

func ConvertPtr(typ Type, i interface{}) interface{}

func ConvertString

func ConvertString(typ Type, i interface{}) interface{}

func ConvertUint

func ConvertUint(typ Type, i interface{}) interface{}

func ConvertUint16

func ConvertUint16(typ Type, i interface{}) interface{}

func ConvertUint32

func ConvertUint32(typ Type, i interface{}) interface{}

func ConvertUint64

func ConvertUint64(typ Type, i interface{}) interface{}

func ConvertUint8

func ConvertUint8(typ Type, i interface{}) interface{}

func ConvertUintptr

func ConvertUintptr(typ Type, i interface{}) interface{}

func Float32

func Float32(i interface{}) float32

func Float64

func Float64(i interface{}) float64

func Int

func Int(i interface{}) int

func Int16

func Int16(i interface{}) int16

func Int32

func Int32(i interface{}) int32

func Int64

func Int64(i interface{}) int64

func Int8

func Int8(i interface{}) int8

func Make

func Make(typ Type, i interface{}) interface{}

Make change interface type and return

func MakeBool

func MakeBool(typ Type, v bool) interface{}

func MakeComplex128

func MakeComplex128(typ Type, v complex128) interface{}

func MakeComplex64

func MakeComplex64(typ Type, v complex64) interface{}

func MakeFloat32

func MakeFloat32(typ Type, v float32) interface{}

func MakeFloat64

func MakeFloat64(typ Type, v float64) interface{}

func MakeInt

func MakeInt(typ Type, v int) interface{}

func MakeInt16

func MakeInt16(typ Type, v int16) interface{}

func MakeInt32

func MakeInt32(typ Type, v int32) interface{}

func MakeInt64

func MakeInt64(typ Type, v int64) interface{}

func MakeInt8

func MakeInt8(typ Type, v int8) interface{}

func MakeString

func MakeString(typ Type, v string) interface{}

func MakeUint

func MakeUint(typ Type, v uint) interface{}

func MakeUint16

func MakeUint16(typ Type, v uint16) interface{}

func MakeUint32

func MakeUint32(typ Type, v uint32) interface{}

func MakeUint64

func MakeUint64(typ Type, v uint64) interface{}

func MakeUint8

func MakeUint8(typ Type, v uint8) interface{}

func MakeUintptr

func MakeUintptr(typ Type, v uintptr) interface{}

func NegComplex128

func NegComplex128(i interface{}) interface{}

func NegComplex64

func NegComplex64(i interface{}) interface{}

func NegFloat32

func NegFloat32(i interface{}) interface{}

func NegFloat64

func NegFloat64(i interface{}) interface{}

func NegInt

func NegInt(i interface{}) interface{}

func NegInt16

func NegInt16(i interface{}) interface{}

func NegInt32

func NegInt32(i interface{}) interface{}

func NegInt64

func NegInt64(i interface{}) interface{}

func NegInt8

func NegInt8(i interface{}) interface{}

func NegUint

func NegUint(i interface{}) interface{}

func NegUint16

func NegUint16(i interface{}) interface{}

func NegUint32

func NegUint32(i interface{}) interface{}

func NegUint64

func NegUint64(i interface{}) interface{}

func NegUint8

func NegUint8(i interface{}) interface{}

func NegUintptr

func NegUintptr(i interface{}) interface{}

func New

func New(typ, ptrto Type) interface{}

func NewPointer

func NewPointer(typ Type) unsafe.Pointer

func Not

func Not(i interface{}) interface{}

func Pointer

func Pointer(i interface{}) unsafe.Pointer

func Runes

func Runes(i interface{}) []rune

func SetPointer

func SetPointer(i interface{}, word unsafe.Pointer) interface{}

func SetType

func SetType(i interface{}, typ Type) interface{}

func String

func String(i interface{}) string

func Uint

func Uint(i interface{}) uint

func Uint16

func Uint16(i interface{}) uint16

func Uint32

func Uint32(i interface{}) uint32

func Uint64

func Uint64(i interface{}) uint64

func Uint8

func Uint8(i interface{}) uint8

func Uintptr

func Uintptr(i interface{}) uintptr

func XorInt

func XorInt(i interface{}) interface{}

func XorInt16

func XorInt16(i interface{}) interface{}

func XorInt32

func XorInt32(i interface{}) interface{}

func XorInt64

func XorInt64(i interface{}) interface{}

func XorInt8

func XorInt8(i interface{}) interface{}

func XorUint

func XorUint(i interface{}) interface{}

func XorUint16

func XorUint16(i interface{}) interface{}

func XorUint32

func XorUint32(i interface{}) interface{}

func XorUint64

func XorUint64(i interface{}) interface{}

func XorUint8

func XorUint8(i interface{}) interface{}

func XorUintptr

func XorUintptr(i interface{}) interface{}

Types

type Type

type Type unsafe.Pointer

func TypeOf

func TypeOf(i interface{}) Type

func TypeOfType

func TypeOfType(typ reflect.Type) Type

Jump to

Keyboard shortcuts

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