mirror of
https://github.com/hanzoai/eval.git
synced 2026-09-30 21:47:09 +00:00
Module path renamed to github.com/hanzoai/eval and the Go package renamed from govaluate to eval. Evaluation, parsing, lexing, and operator behavior are unchanged; MIT license and George Lester attribution retained. See NOTICE for lineage.
9 lines
333 B
Go
9 lines
333 B
Go
package eval
|
|
|
|
/*
|
|
Represents a function that can be called from within an expression.
|
|
This method must return an error if, for any reason, it is unable to produce exactly one unambiguous result.
|
|
An error returned will halt execution of the expression.
|
|
*/
|
|
type ExpressionFunction func(arguments ...interface{}) (interface{}, error)
|