Go嵌入类型及内部提升样例

这个有点新鲜哟。。。 package main import ( "fmt" ) type notifier interface { notify() } type user struct { name string email string } func (u *user) notify() { fmt.Printf("Sending user email to %s<%s
相关文章
相关标签/搜索