operator

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a, b int) int

Add is the addition operator, 'a+b'

func BitAnd

func BitAnd(a, b int) int

BitAnd is bitwise and, '&'.

func BitInvert

func BitInvert(n int) int

BitInvert inverts the bits of n. Go treats integers as two's complement, regardless of the underlying hardware.

func BitOr

func BitOr(a, b int) int

BitOr is bitwise or, '|'

func BitXor

func BitXor(a, b int) int

BitXor is bitwise XOR, '^'

func Div

func Div(a, b int) int

Div is the division operator, 'a/b'

func GT

func GT(a, b int) bool

GT is Greater than, '>'

func GTE

func GTE(a, b int) bool

GTE is Greater than or Equal, '>='

func LT

func LT(a, b int) bool

LT is Less, the comparison operator, 'a<b'

func LTE

func LTE(a, b int) bool

LTE is Less than or Equal, the comparison operator, 'a<=b'

func Mod

func Mod(a, b int) int

Mod is the mod operator, 'a%b'

func Mul

func Mul(a, b int) int

Mul is the multiplication operator, 'a*b'

func Neg

func Neg(n int) int

Neg is the unary operator '-'

func NoOp

func NoOp(n int) int

NoOp does nothing.

func Sub

func Sub(a, b int) int

Sub is the subtraction operator, '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