> For the complete documentation index, see [llms.txt](https://denglj.gitbook.io/essential-go/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://denglj.gitbook.io/essential-go/02-basic-types/kong-jie-kou.md).

# 空接口

&#x20;类型 `interface{}` 就被称为空接口。

根据定义，它就是不包含方法的接口。

这意味着每种类型都符合空接口。

在Go中，`interface{}` 被当做动态类型使用。

它跟C#或Java中的对象类似，因为它们都是把一个类型和一个值结合为单个值。（译者注：把一个类型和一组值结合为单个对象）

空接口也是您在Go中实现共用体类型(union type)的工具。

空接口的[零值](/essential-go/02-basic-types/ling-zhi.md)是`nil`。

学习更多关于[空接口](/essential-go/12-empty-interface.md)的知识。
