freeCodeCamp/guide/chinese/go/go-playground/index.md

29 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Go Playground
localeTitle: 去游乐场
---
# Golang游乐场
Golang游乐场是一个可以在线编写Go代码的网站因此您无需设置任何开发环境。
只需打开一个新的浏览器窗口克服[Playground](https://play.golang.org) 。
到那里,你会得到按钮:
1.
2. 格式
3. 进口
4. 分享
“运行”按钮只是将编写代码的指令发送到运行golang后端的google服务器。
“格式”按钮实现了该语言的惯用格式样式,您可以[在此处](https://golang.org/pkg/fmt/)阅读更多内容[。](https://golang.org/pkg/fmt/)
导入只检查您在import中声明的包。导入路径是唯一标识包的字符串。包的导入路径对应于其在工作空间内或远程存储库中的位置如下所述。 [更多](https://golang.org/doc/code.html#ImportPaths)
使用Share您将获得一个URL您刚刚编写的代码将保存在该URL中。在寻求显示代码的帮助时很有用。
#### 更多信息:
* [围棋游乐场](https://play.golang.org/)
* [围棋之旅](https://tour.golang.org/welcome/4)