> For the complete documentation index, see [llms.txt](https://gocompiler.shizhz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocompiler.shizhz.me/golang-bian-yi-qi-lei-xing-jian-cha/4.4.42-lei-xing-shu-ju-jie-gou-jie-kou.md).

# 4.4.4-2 类型接口

首先是`Type`接口，定义如下：

```go
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()`方法的返回类型。
