示例代码
package main
import "fmt"
type Computer interface {
Calculator
Play(string) string
}
type Calculator interface {
Open(string) Calculator
Say(string) string
Add(uint, uint)
Sum(int, int) int
}
type TOM struct {
Name string
Age int
Bob *BOB
n int
}
type BOB struct {
TOM
MyName string
}
func (t *TOM) Open(s string)<