Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desktopgame/gocalc
https://github.com/desktopgame/gocalc
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/desktopgame/gocalc
- Owner: desktopgame
- Created: 2019-10-27T06:15:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T06:15:54.000Z (about 5 years ago)
- Last Synced: 2023-03-05T12:04:35.455Z (over 1 year ago)
- Language: Go
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```