go - 继承

a11101171 ·
http://golangtutorials.blogspot.com/2011/06/anonymous-fields-in-structs-like-object.html
#5
更多评论
为何car struct 可以组合 Engine interface 呢?
#1
golang的接口是非侵入式的,楼主让非得把接口Engine写入到Car的结构中,真是人才啊。
#2