cal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a, b any) (any, error)

Add returns the result of a + b

func Adds

func Adds(a any, b ...any) (r any, err error)

Adds returns the result of a + b[0] + b[1] ...

func BitAnd

func BitAnd(a, b any) (any, error)

BitAnd returns the result of a & b

func BitAnds

func BitAnds(a any, b ...any) (r any, err error)

BitAnds returns the result of a & b[0] & b[1] ...

func BitLeft

func BitLeft(a, b any) (any, error)

BitLeft returns the result of a << b

func BitNot

func BitNot(a any) (any, error)

BitNot returns the result of ~a

func BitOr

func BitOr(a, b any) (any, error)

BitOr returns the result of a | b

func BitOrs

func BitOrs(a any, b ...any) (r any, err error)

BitOrs returns the result of a | b[0] | b[1] ...

func BitRight

func BitRight(a, b any) (any, error)

BitRight returns the result of a >> b

func BitXor

func BitXor(a, b any) (any, error)

BitXor returns the result of a ^ b

func BitXors

func BitXors(a any, b ...any) (r any, err error)

BitXors returns the result of a ^ b[0] ^ b[1] ...

func Divide

func Divide(a, b any) (any, error)

Divide returns the result of a / b

func Divides

func Divides(a any, b ...any) (r any, err error)

Divides returns the result of a / b[0] / b[1] ...

func LogicAnd

func LogicAnd(a any, vs ...any) bool

func LogicEq

func LogicEq(a, b any) (bool, error)

LogicEq returns the result of a == b

func LogicGt

func LogicGt(a, b any) (bool, error)

LogicGt returns the result of a > b

func LogicGte

func LogicGte(a, b any) (bool, error)

LogicGte returns the result of a >= b

func LogicLt

func LogicLt(a, b any) (bool, error)

LogicLt returns the result of a < b

func LogicLte

func LogicLte(a, b any) (bool, error)

LogicLte returns the result of a <= b

func LogicNeq

func LogicNeq(a, b any) (r bool, err error)

LogicNeq returns the result of a != b

func LogicOr

func LogicOr(a any, vs ...any) bool

func Mod

func Mod(a, b any) (any, error)

Mod returns the result of a % b

func Mods

func Mods(a any, b ...any) (r any, err error)

Mods returns the result of a % b[0] % b[1] ...

func Multiply

func Multiply(a, b any) (any, error)

Multiply returns the result of a * b

func Multiplys

func Multiplys(a any, b ...any) (r any, err error)

Multiplys returns the result of a * b[0] * b[1] ...

func Negate

func Negate(a any) (any, error)

Negate returns the result of -a

func Subtract

func Subtract(a, b any) (any, error)

Subtract returns the result of a - b

func Subtracts

func Subtracts(a any, b ...any) (r any, err error)

Subtracts returns the result of a - b[0] - b[1] ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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