functions

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlowFunctions map[string]govaluate.ExpressionFunction = map[string]govaluate.ExpressionFunction{
	"isDefined": IsDefined,
	"ifnull":    IfNull,
	"if":        If,
}
View Source
var MathFunctions map[string]govaluate.ExpressionFunction = map[string]govaluate.ExpressionFunction{
	"cos":   Cos,
	"acos":  Acos,
	"cosh":  Cosh,
	"acosh": Acosh,

	"exp":  Exp,
	"exp2": Exp2,

	"log":   Log,
	"log10": Log10,

	"round": Round,
	"floor": Floor,
	"ceil":  Ceil,
	"trunc": Trunc,

	"sin":   Sin,
	"asin":  Asin,
	"sinh":  Sinh,
	"asinh": Asinh,

	"sqrt": Sqrt,

	"tan":   Tan,
	"atan":  Atan,
	"atan2": Atan2,
	"tanh":  Tanh,
	"atanh": Atanh,

	"max": Max,
	"min": Min,
}
View Source
var WrongParamsCount = errors.New("wrong params count")

Functions

func Acos

func Acos(args ...interface{}) (interface{}, error)

func Acosh

func Acosh(args ...interface{}) (interface{}, error)

func Asin

func Asin(args ...interface{}) (interface{}, error)

func Asinh

func Asinh(args ...interface{}) (interface{}, error)

func Atan

func Atan(args ...interface{}) (interface{}, error)

func Atan2

func Atan2(args ...interface{}) (interface{}, error)

func Atanh

func Atanh(args ...interface{}) (interface{}, error)

func Ceil

func Ceil(args ...interface{}) (interface{}, error)

func Cos

func Cos(args ...interface{}) (interface{}, error)

func Cosh

func Cosh(args ...interface{}) (interface{}, error)

func Exp

func Exp(args ...interface{}) (interface{}, error)

func Exp2

func Exp2(args ...interface{}) (interface{}, error)

func Floor

func Floor(args ...interface{}) (interface{}, error)

func If

func If(args ...interface{}) (interface{}, error)

func IfNull

func IfNull(args ...interface{}) (interface{}, error)

func IsDefined

func IsDefined(args ...interface{}) (interface{}, error)

func IsWrongParamType

func IsWrongParamType(err error) bool

func IsWrongParamsCount

func IsWrongParamsCount(err error) bool

func Log

func Log(args ...interface{}) (interface{}, error)

func Log10

func Log10(args ...interface{}) (interface{}, error)

func Max

func Max(args ...interface{}) (interface{}, error)

func Min

func Min(args ...interface{}) (interface{}, error)

func NewWrongParamType

func NewWrongParamType(index int) error

func Round

func Round(args ...interface{}) (interface{}, error)

func Sin

func Sin(args ...interface{}) (interface{}, error)

func Sinh

func Sinh(args ...interface{}) (interface{}, error)

func Sqrt

func Sqrt(args ...interface{}) (interface{}, error)

func Tan

func Tan(args ...interface{}) (interface{}, error)

func Tanh

func Tanh(args ...interface{}) (interface{}, error)

func ToFloat64

func ToFloat64(v interface{}) (float64, bool)

func Trunc

func Trunc(args ...interface{}) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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