Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any example of use please ? #1

Open
toni-moreno opened this issue Nov 2, 2016 · 6 comments
Open

Any example of use please ? #1

toni-moreno opened this issue Nov 2, 2016 · 6 comments

Comments

@toni-moreno
Copy link

I would like to test your tool but I'm not able to search for more info.

@neelsg
Copy link

neelsg commented Nov 22, 2016

Just tried it myself and the lack of any example/documentation is a bit of a barrier. Looks like simplest use case is: answer := calc.Solve(formulaInString).

@swill
Copy link

swill commented Nov 22, 2016

Adding an example to the readme would be very helpful considering you have this specified this as a stackoverflow answer, but without documentation of any kind, it makes it difficult for people to utilize.

@whit-colm
Copy link

@neelsg what did you import? I think I understand how to use the thing but I don't know how to actually get this library in my project.

@swill
Copy link

swill commented Feb 8, 2017

@whitman-colm You may just want to use this instead: https://github.com/Knetic/govaluate

It does basically the same thing and it has documentation. I am using it in a production application now and it is working well...

@neelsg
Copy link

neelsg commented Feb 25, 2017

@whitman-colm I used go get github.com/marcmak/calc to pull it, but the source files actually sit in a subfolder called "calc", so in my project I used import "github.com/marcmak/calc/calc"

@mindfulme
Copy link

use https://github.com/Knetic/govaluate, not enough updates here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants