cal

package module
v0.0.0-...-96b44c2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: BSD-2-Clause-Views Imports: 5 Imported by: 0

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)

Documentation

Index

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.

Jump to

Keyboard shortcuts

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