我正在尝试在sublime text 3中运行go代码。
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/ ] # 请让我知道我可能遗漏了什么。
发布于 2017-04-15 11:48:12
打开sublime Goto Tools->Build System-> New build System。粘贴到文件中的行下面,并保存为some_name.sublime-build
{
"shell_cmd": "go run $file",
"shell":true
}转到工具->构建系统-><select-your-build or automatic>
转到工具->构建
完成干杯:)
https://stackoverflow.com/questions/43406148
复制相似问题