GetFunctions return a map with all the functions.
()
| 55 | |
| 56 | // GetFunctions return a map with all the functions. |
| 57 | func (fm *FunctionMap) GetFunctions() map[string]govaluate.ExpressionFunction { |
| 58 | ret := make(map[string]govaluate.ExpressionFunction) |
| 59 | |
| 60 | fm.fns.Range(func(k interface{}, v interface{}) bool { |
| 61 | ret[k.(string)] = v.(govaluate.ExpressionFunction) |
| 62 | return true |
| 63 | }) |
| 64 | |
| 65 | return ret |
| 66 | } |
no test coverage detected