Links
Comment on page

4.4.4-2 类型接口

首先是Type接口,定义如下:
type Type interface {
// Underlying returns the underlying type of a type
// w/o following forwarding chains. Only used by
// client packages (here for backward-compatibility).
Underlying() Type
// String returns a string representation of a type.
String() string
}
不同类型之间的差异性很大,所以类型接口的方法只有两个,该接口也是Object接口中Type()方法的返回类型。