math

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Overview

package math provides basic math functions for use with the template engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AND

func AND(a bool, b bool) bool

`AND` the logical AND of its two boolean arguments - a: the first boolean value - b: the second boolean value - returns: `true` if both `a` and `b` are `true`, otherwise it returns `false`

func Divide

func Divide(a, b int) int

Divide divides two integers - a: the first integer - b: the second integer - returns: the quotient of the two integers

func Minus

func Minus(a, b int) int

Minus subtracts two integers - a: the first integer - b: the second integer - returns: the difference of the two integers

func Multiply

func Multiply(a, b int) int

Multiply multiplies two integers - a: the first integer - b: the second integer - returns: the product of the two integers

func NOT

func NOT(a bool) bool

The NOT function returns the opposite of the boolean value passed to it. - a: the boolean value to negate - returns: the opposite of the boolean value passed to it

func OR

func OR(a bool, b bool) bool

`OR` the logical or of its two boolean arguments - a: the first boolean value - b: the second boolean value - returns: `true` if either `a` or `b` is `true`, otherwise it returns `false`

func Plus

func Plus(a, b int) int

Plus adds two integers - a: the first integer - b: the second integer - returns: the sum of the two integers

Types

This section is empty.

Jump to

Keyboard shortcuts

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