2017-04-14 131 views
0

我試圖運行崇高的文字去碼3用崇高的文本3

package main 

import (
    "fmt" 
) 

func main() { 
    fmt.Println("Hello, playground") 
} 

然而,當我去Tools -> Build下,我看到程序進入無限「去運行」,在無限循環是怎麼回事循環。

GoSublime r17.03.05-1 9o: type `help` for help and command documentation 

[ `go run main.go` ⌛ ] 
[ ~/Documents/SublimeWorkspace/ ] # 

請讓我知道我可能會在這裏失蹤。

+1

你在哪裏看到這個無限循環? – Flimzy

+0

嘗試從終端運行您的程序 –

回答

0

開放昇華 轉到工具 - >構建系統 - >新建系統。粘貼下面的文件中的行,並通過節省some_name.sublime,建立

{ 
"shell_cmd": "go run $file", 
"shell":true 
} 

轉到工具 - >構建系統 - ><select-your-build or automatic>

轉到工具 - >構建

做歡呼:)