GoGeometricShapes
所属分类:图形图象
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-10-13 05:11:58
上 传 者:
sh-1993
说明: 一个Go项目,用于通过错误处理计算正方形和圆形区域,展示编程技能和单元测试,
(A Go project for calculating square and circle areas with error handling, showcasing programming skills and unit testing,)
文件列表:
functions.go (502, 2023-10-12)
interface.go (71, 2023-10-12)
main.go (99, 2023-10-12)
main_test.go (1306, 2023-10-12)
print.go (207, 2023-10-12)
struct.go (100, 2023-10-12)
# 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](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/your-image-url-here)
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](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#about)
- [Features](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#features)
- [Technologies Used](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#technologies-used)
- [Getting Started](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#getting-started)
- [Usage](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#usage)
- [Testing](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#testing)
- [Contributing](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#contributing)
- [License](https://github.com/MohammedSalman999/GoGeometricShapes/blob/master/#license)
## 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:
```shell
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.
近期下载者:
相关文件:
收藏者: