This is a simple Cli written in golang.
- Go 91.5%
- Dockerfile 8.5%
| args | ||
| loggers | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| README.md | ||
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.