functions

package
v0.0.0-...-0a688d3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 7 Imported by: 4

README

gcf (GoCalculate Function)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(inputs ...interface{}) (args.Const, error)

Calculate will return Calculations or error

func MustCalculate

func MustCalculate(inputs ...interface{}) args.Const

MustCalculate is the same as calculate, but will panic

Types

type Function

type Function struct {
	Args []interface{}
	// contains filtered or unexported fields
}

Function is the function type for GoCalculate

func MakeFunc

func MakeFunc(regVars []args.Var, inputs ...interface{}) (*Function, error)

MakeFunc will make a gcf function struct. Else error

func MakeFuncPanic

func MakeFuncPanic(regVars []args.Var, inputs ...interface{}) *Function

MakeFuncPanic will the same as MakeFunc but will panic

func (*Function) Eval

func (f *Function) Eval(inputs ...interface{}) (args.Const, error)

Eval will evaluate a function

func (*Function) MustEval

func (f *Function) MustEval(inputs ...interface{}) args.Const

MustEval is like Eval but will panic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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