gordiyanovp / golang-united-school-homework-6.1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golang-united-school-homework-6.1

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.

About


Languages

Language:Go 100.0%