Skip to content

A Go project for calculating square and circle areas with error handling, showcasing programming skills and unit testing

Notifications You must be signed in to change notification settings

MohammedSalman999/GoGeometricShapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoGeometricShapes

A Go project for calculating square and circle areas with error handling, showcasing programming skills and unit testing

Go Geometric Shapes Calculator

Go Geometric Shapes Calculator

A simple Go application for calculating the area of squares and circles. This project showcases Go programming skills and unit testing.

Table of Contents

About

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.

Features

  • Calculate the area of squares.
  • Calculate the area of circles.
  • Error handling for negative values.
  • Unit tests to validate functionality.

Technologies Used

  • Go
  • Go Testing Framework

Getting Started

To get started with this project, make sure you have Go installed on your machine.

  1. 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.

About

A Go project for calculating square and circle areas with error handling, showcasing programming skills and unit testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages