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
相关文章
相关标签/搜索