Skip to content

Satishchoudhary94/Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Dockerized Go Calculator

A simple command-line calculator built with Go and containerized using Docker.


๐Ÿ“ Project Structure

.
โ”œโ”€โ”€ calculator.go # Main Go source file
โ”œโ”€โ”€ dockerfile # Dockerfile to build the image
โ””โ”€โ”€ go.mod # Go module (for dependency and version management)

๐Ÿš€ Features

  • Basic CLI-based calculator
  • Accepts two numbers and an operator (+, -, *, /)
  • Built with Go
  • Dockerized for portability and consistency

๐Ÿ› ๏ธ Technologies Used


๐Ÿณ Getting Started with Docker

๐Ÿ”ง Build the Docker Image

docker build -t go-calculator .

โ–ถ๏ธ Run the Docker Container

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages