This is a simple Cli written in golang.
  • Go 91.5%
  • Dockerfile 8.5%
Find a file
2021-02-23 19:50:20 +00:00
args Adding the Subtraction using float and ints 2021-02-23 19:50:20 +00:00
loggers Cli can sum integers and floats 2021-02-22 22:22:57 +00:00
docker-compose.yaml Adding the Subtraction using float and ints 2021-02-23 19:50:20 +00:00
Dockerfile Cli can sum integers and floats 2021-02-22 22:22:57 +00:00
go.mod Cli can sum integers and floats 2021-02-22 22:22:57 +00:00
go.sum Cli can sum integers and floats 2021-02-22 22:22:57 +00:00
main.go Adding the Subtraction using float and ints 2021-02-23 19:50:20 +00:00
README.md Cli can sum integers and floats 2021-02-22 22:22:57 +00:00

Cli - Command line tool

With this i pretend to learn more about testing functions and creating Cli.

This cli will sum two numbers int or float using the intsum and floatsum command respectively.

  • Example 1: go run main.go intsum --num1 5 --num2 6

    • This will print on the terminal -> The result is: 11.
  • Example 2: go run main.go floatsum --num1 5.5 --num2 5.5

    • The result is the same.