Skip to content

Very Simple cli made using cobra which acts as a calculator.

Notifications You must be signed in to change notification settings

tarun-hegde/go-calculator-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-calculator-CLI

Very Simple cli made using cobra which acts as a calculator.
The calculator can perform the operations such as addition,division and multiplication.

After cloning the Repository ,run the command go run main.go
followed by the subcommands
1)To perform Division:d [num1] [num2]
2)To perform Multiplication:p num[1] num[2] ...
2)To perform Addition:add num[1] num[2] ...
Returns all answers in form of integers. Note:While inserting negative integers add the flag --, for eg:go run main.go add -- -11 21.

About

Very Simple cli made using cobra which acts as a calculator.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages