datatype

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	NumberType = 1 + iota
	StringType
	BooleanType
	GenerictType
	NoneType
	UnSupportedType
)

datatypes

Variables

View Source
var ErrUnknownDataype = errors.New("unknown datatype")

ErrUnknownDataype #

Functions

func CheckBoolean

func CheckBoolean(values ...interface{}) bool

CheckBoolean checks whether values are boolean type

func CheckNumber

func CheckNumber(values ...interface{}) bool

CheckNumber checks whether values are number type

func CheckString

func CheckString(values ...interface{}) bool

CheckString checks whether values are string type

func Checkdatatype

func Checkdatatype(value interface{}, datatype uint) bool

Checkdatatype of value is correct

func GetType

func GetType(value interface{}) (uint, bool)

GetType of value

func GetTypeString

func GetTypeString(value interface{}) string

GetTypeString #

func IsSupported

func IsSupported(value interface{}) bool

IsSupported check if datatype is supported

Types

This section is empty.

Jump to

Keyboard shortcuts

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