理解Golang Interface(施工中)

Interface允许你实现polymorphism(多态), 允许你define behavior。

type secretAgent struct {
    person
    ltk bool
}

type human interface {
    speak()
}







References:
https://www.youtube.com/watch?v=gfoVLXQ5ujM