摘要:
interface是一组method的组合,通过interface来定义对象的一组行为。func (e Employee) SayHi() { fmt.Printf("Hi, I am %s, I work at %s. Call me on %s\n", e.name, e.company, e.phone) //Yes you can split into 2 lines here.}func (e *Employee) SayHi() { fmt.Printf("Hi, I am %s, I work at %s. Call me on %s\n" 阅读全文
posted @ 2013-03-03 23:55
Bridge M
阅读(156)
评论(0)
推荐(0)

浙公网安备 33010602011771号