go語言多態接口樣例

感覺比java玄幻啊~~~ 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
相關文章
相關標籤/搜索