您不能从内部结构访问外部结构字段。仅内部字段来自外部。您可以做的是:
type CommonThing struct { A int B string}func (ct CommonThing) Valid() bool { return ct.A != 0 && ct.B != ""}type TheThing struct { CommonThing C float64}func (tt TheThing) Valid() bool { return tt.CommonThing.Valid() && tt.C != 0}


