You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
qline | 2 years ago | |
termios | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
go.mod | 2 years ago | |
main.go | 2 years ago | |
nums | 2 years ago |
README.md
nums
This is a basic cli calculator that uses postfix notation and can accept piped data. To use data from a command line pipe use the -p
flag, for example: echo "2 2 +" | nums -p
. The example would output 4
, but without the -p
flag would produce a runtime panic.
For help/available operators enter ?
or help
at the repl or via piped data to get help information printed to stderr.