README ¶ A simple calculate lib support * / + - ( ) k_v := map[string]interface{}{"a":2,"b":3,"c":4,"d":5} rst, err := cal.Cal("a-b/c+d*(a-d)", k_v) Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Cal(s string, vars map[string]interface{}) (float64, error) func Parser(s string) []string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Cal ¶ func Cal(s string, vars map[string]interface{}) (float64, error) func Parser ¶ func Parser(s string) []string Types ¶ This section is empty. Source Files ¶ View all Source files calculator.go Click to show internal directories. Click to hide internal directories.