29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
|   | --- | |||
|  | 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) |