nutil

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a, b interface{}) interface{}

Add a+b

func AddInt

func AddInt(a, b interface{}) int

AddInt a+b

func Bool

func Bool(v interface{}) bool

convert value to bool type

func Div

func Div(a, b interface{}) interface{}

Div a/b

func DivFloat

func DivFloat(a, b interface{}) float64

Div a/b

func Float32

func Float32(v interface{}) (float32, error)

func Float32Must

func Float32Must(v interface{}) float32

func Float64

func Float64(v interface{}) (float64, error)

func Float64Must

func Float64Must(v interface{}) float64

func Int

func Int(v interface{}) (int, error)

func Int64

func Int64(v interface{}) (int64, error)

func Int64Must

func Int64Must(v interface{}) int64

func IntMust

func IntMust(v interface{}) int

func IsFloat

func IsFloat(v interface{}) bool

func IsInt

func IsInt(v interface{}) bool

func IsNumber

func IsNumber(v interface{}) bool

func IsString

func IsString(v interface{}) bool

func Mod

func Mod(a, b interface{}) interface{}

Mod a%b

func Mul

func Mul(a, b interface{}) interface{}

Mul a*b

func String

func String(v interface{}) string

func Sub

func Sub(a, b interface{}) interface{}

Sub a-b

Types

This section is empty.

Jump to

Keyboard shortcuts

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