This repo shows how interfaces can be used to compare the value of different struct functions.
We have a Rock struct and Water struct. Both have a Density Function and we need to compare both things.
Check 2_solution.go
3_myown.go
How to compare two different struct functions results in Golang
Go