Gytis Repečka
|
da314f15dd
|
Added struct-interface.go - in this exercise two structs Car and Truck has interface Vehicle and methods for it. Example shows how methods (functions) should be written for just specific struct or for the interface (i.e. applicable for both Car and Truck). Also explaining use of pointers as opposed to using a copy of obejct.
|
2018-10-27 20:17:19 +03:00 |
|