Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoFormula ErrNoFormula ErrNoFormula = errors.New("no formula like this") )
Functions ¶
Types ¶
type Expr ¶
type Expr interface { // Eval returns the value of this Expr in the environment env. Eval(env Env) Substance // Check reports errors in this Expr and adds its Vars to the set. Check(vars map[Var]bool) error }
An Expr is an arithmetic expression.
type FormulaReq ¶
type FormulaReq struct { Expression string `json:"expression"` Parameter map[string]interface{} `json:"parameter"` }
FormulaReq FormulaReq
Click to show internal directories.
Click to hide internal directories.