Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 305 Bytes

README.md

File metadata and controls

16 lines (8 loc) · 305 Bytes

Golang Interfaces

This repo shows how interfaces can be used to compare the value of different struct functions.

Problem

We have a Rock struct and Water struct. Both have a Density Function and we need to compare both things.

Solution

Check 2_solution.go

Another example

3_myown.go