1
The Golang Trinity: Functions, Methods, Interfaces
深入理解Go语言函数、方法与接口的协作关系,实例演示接口的鸭子类型与解耦设计。
Function : Does something with inputs Method Does something attached to a type Interface Says what methods a type must have A method is a function wit…