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
相關文章
相關標籤/搜索