Inside this repo you can find boilerplate code with comments that describe expected behavior of methods.
Prerequisite:
- Execute commands
go mod init
go mod tidy
Required to implement:
- Calculate Area and Perimeter for shapes Circle, Triangle, Rectangle in
circle.go
,triangle.go
,rectangle.go
files. - Circle, Triangle, Rectangle must satisfy to Shape interface.
- Methods for Box structure in
box.go
file.
Final solution must satisfy to provided unit tests in box_test.go
file.