Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/desktopgame/gocalc


https://github.com/desktopgame/gocalc

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

# gocalc

電卓
+-\*/%() のみ使用可能

# install

```
go get github.com/desktopgame/gocalc
```

# example

.1

```
$ gocalc -i "3 + 1 * 2"
+
3
*
1
2
5
```

.2

```
$ gocalc -i "3 + 1 * 2 * 4"
+
3
*
*
1
2
4
11
```

.3

```
$ gocalc -i "10 % 3"
%
10
3
1
```