ztype

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 5 Imported by: 28

Documentation

Overview

Package ztype provides Variable Type Related Operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetType

func GetType(s interface{}) string

GetType Get variable type

func IsBool

func IsBool(v interface{}) bool

IsBool Is Bool

func IsByte

func IsByte(v interface{}) bool

IsByte Is []byte

func IsFloat32

func IsFloat32(v interface{}) bool

IsFloat32 Is float32

func IsFloat64

func IsFloat64(v interface{}) bool

IsFloat64 Is float64

func IsInt

func IsInt(v interface{}) bool

IsInt Is int

func IsInt16

func IsInt16(v interface{}) bool

IsInt16 Is int16

func IsInt32

func IsInt32(v interface{}) bool

IsInt32 Is int32

func IsInt64

func IsInt64(v interface{}) bool

IsInt64 Is int64

func IsInt8

func IsInt8(v interface{}) bool

IsInt8 Is int8

func IsInterface

func IsInterface(v interface{}) bool

IsInterface Is interface{}

func IsString

func IsString(v interface{}) bool

IsString Is String

func IsStruct

func IsStruct(v interface{}) bool

IsStruct Is Struct

func IsUint

func IsUint(v interface{}) bool

IsUint Is uint

func IsUint16

func IsUint16(v interface{}) bool

IsUint16 Is uint16

func IsUint32

func IsUint32(v interface{}) bool

IsUint32 Is uint32

func IsUint64

func IsUint64(v interface{}) bool

IsUint64 Is uint64

func IsUint8

func IsUint8(v interface{}) bool

IsUint8 Is uint8

func MapKeyExists

func MapKeyExists(key interface{}, m map[interface{}]interface{}) bool

MapKeyExists Whether the dictionary key exists

func ToBool

func ToBool(i interface{}) bool

ToBool to Bool

func ToByte

func ToByte(i interface{}) []byte

ToByte to []byte

func ToFloat32

func ToFloat32(i interface{}) float32

ToFloat32 to float32

func ToFloat64

func ToFloat64(i interface{}) float64

ToFloat64 to float64

func ToInt

func ToInt(i interface{}) int

ToInt to int

func ToInt16

func ToInt16(i interface{}) int16

ToInt16 to int16

func ToInt32

func ToInt32(i interface{}) int32

ToInt32 to int32

func ToInt64

func ToInt64(i interface{}) int64

ToInt64 to int64

func ToInt8

func ToInt8(i interface{}) int8

ToInt8 to int8

func ToString

func ToString(i interface{}) string

ToString to String

func ToUint

func ToUint(i interface{}) uint

ToUint to uint

func ToUint16

func ToUint16(i interface{}) uint16

ToUint16 to uint16

func ToUint32

func ToUint32(i interface{}) uint32

ToUint32 to uint32

func ToUint64

func ToUint64(i interface{}) uint64

ToUint64 to uint64

func ToUint8

func ToUint8(i interface{}) uint8

ToUint8 to uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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