A simple command-line calculator built with Go and containerized using Docker.
.
โโโ calculator.go # Main Go source file
โโโ dockerfile # Dockerfile to build the image
โโโ go.mod # Go module (for dependency and version management)- Basic CLI-based calculator
- Accepts two numbers and an operator (+, -, *, /)
- Built with Go
- Dockerized for portability and consistency
docker build -t go-calculator .docker run -it go-calculator๐งช Example Input/Output
Enter first number: 10
Enter operator (+, -, *, /): *
Enter second number: 3
Result: 30๐ Notes Make sure you have Go installed locally if not using Docker. A go.mod file is already included for module support.