goLang
dep: go get -u github.com/golang/dep/cmd/dep
Clone the repository
- cd
$GOPATH/src/github.com
git clone https://github.com/{username}/arena
The build process is set to be automatic you just need to install the package using:
dep ensure
make tool
make add
Enter number and press enter, enter second number.
make test
Will run all the tests for all packages (src/*).
We can add more operations like subtract, divide, just by adding a specific function in src/{operation}/{operation}.go
.
And adding them in cmd/cli.go