# 《Go语言基础》

![](/files/-M5h2STCq6tC-kaUaiYP)

《Go语言基础》是免费电子书《[Essential Go](https://www.programming-books.io/essential/go/)》的精校中文译本。

本书的目的是为刚开始学习Golang以及那些钻研其更复杂主题的进阶程序员们提供关于Golang清晰而简洁的解释。

本书中大多数例子都链接到了[Golang在线编程操场](https://play.golang.org/)，以便您可以尝试修改代码并重新运行。

您还可以使用左侧的目录快速导航到所需的内容，并能在顶部搜索框进行搜索。（提示：别忘了利用好Ctrl+F页内搜索）

本书内容基于现在已废弃的[StackOverflow文档](https://stackoverflow.com/documentation)项目。它已经过了大量的编辑和改进。

本书内容（原英文版）使用知识共享许可协议3.0（[CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0)）发布。

\*\*\*\*\*

**署名申明1**：本电子书英文原作 **Maintained by** [**Krzysztof Kowalczyk**](https://blog.kowalczyk.info/)。

**署名申明2**：本电子书此中文译作作者为**阿驹**(aju / denglj)，“驹说码事”公号/专栏作者。

**修改申明**：译者对内容进行了适当修改。

**修改原则**：\
1\. 对原作过时之处进行更新；（更新基于Go v1.14.2，兼容v1.13）\
2\. 对原作勘误之处进行校正；\
3\. 对原作失误之处进行修正；\
4\. 对原作模糊之处进行澄清；\
5\. 尽量保证不降低内容质量；\
6\. 对修改之处进行标注。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://denglj.gitbook.io/essential-go/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
