typecheck

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBool

func IsBool(b interface{}) bool

IsBool checks if the given interface is a bool.

func IsFloat32

func IsFloat32(s string) bool

Checks if the given string is a valid number (Float32).

func IsFloat64

func IsFloat64(s string) bool

Checks if the given string is a valid number (Float64).

func IsHex

func IsHex(s string) bool

IsHex checks if the given string is a valid hexadecimal string.

func IsInt

func IsInt(num interface{}) bool

IsInt checks if the given interface is an int.

func IsString

func IsString(str interface{}) bool

IsString checks if the given interface is a string.

func IsStringNumericUint

func IsStringNumericUint(s string, base, bitSize int) bool

Checks if the given string is a valid number (Uint).

func IsUint

func IsUint(num interface{}) bool

IsUint checks if the given interface is a uint.

func IsUint32

func IsUint32(num interface{}) bool

IsUint32 checks if the given interface is a uint32.

func IsUint64

func IsUint64(num interface{}) bool

IsUint64 checks if the given interface is a uint64.

func IsUint8

func IsUint8(num interface{}) bool

IsUint8 checks if the given interface is a uint8.

Types

This section is empty.

Jump to

Keyboard shortcuts

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