A Go project for calculating square and circle areas with error handling, showcasing programming skills and unit testing
A simple Go application for calculating the area of squares and circles. This project showcases Go programming skills and unit testing.
This project provides Go functions for calculating the area of squares and circles. It emphasizes error handling and demonstrates Go interfaces. The codebase includes unit tests to ensure accuracy.
- Calculate the area of squares.
- Calculate the area of circles.
- Error handling for negative values.
- Unit tests to validate functionality.
- Go
- Go Testing Framework
To get started with this project, make sure you have Go installed on your machine.
- Clone the repository:
git clone https://github.com/mohammedsalman999/GoGeometricShapes.git
##usage c := circle{5} s := square{12}
PrintValue(c) PrintValue(s)
##test
go test
Contributing Contributions are welcome! If you want to contribute to this project.