Documentation ¶
Index ¶
- func Add(v1, v2 interface{}) interface{}
- func Addi(v1, v2 interface{}) int
- func Divide(v1, v2 interface{}) interface{}
- func Float32(v interface{}) float32
- func Float64(v interface{}) float64
- func Int(v interface{}) int
- func Int64(v interface{}) int64
- func IsNumber(v interface{}) bool
- func IsZero(v interface{}) bool
- func Modulo(v1, v2 interface{}) interface{}
- func Multiply(v1, v2 interface{}) interface{}
- func Subi(v1, v2 interface{}) int
- func Subtract(v1, v2 interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Divide ¶
func Divide(v1, v2 interface{}) interface{}
Divide v1 by v2 for non-zero v2 or return zero
func IsNumber ¶
func IsNumber(v interface{}) bool
IsNumber checks to see if the input type can render to a float64, float32, int64 or int
func Modulo ¶
func Modulo(v1, v2 interface{}) interface{}
Modulo returns the modulo of int or int64 or zero
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.