英文:
Equivalent of Rails console for Go
问题
我相对来说对Go语言还比较新,我想知道是否有一个可以在其中测试Go命令的控制台。我基本上想要一个每次打开控制台时都会重置的沙盒环境。对于了解Rails的人来说,希望有一个类似于Rails控制台的体验。
英文:
I am relatively new to Go and I was curious if there is a console that I can test go commands in. I essentially want a sandboxed environment that resets every time the console is opened. For those that know Rails, a experience similar to Rails console is desired.
答案1
得分: 4
我不熟悉Rails控制台,但是Go Playground(http://play.golang.org)提供了一个沙盒环境,可以用来测试Go代码。但是它需要一个完整的Go程序,而不仅仅是像Ruby这样的解释型语言的控制台一样逐行输入。
英文:
I'm not familiar with the Rails console, but the Go Playground (http://play.golang.org) provides a sandboxed environment to test Go code in. But it needs to be a complete Go program, not just typed in a line at a time like the console for an interpreted language like Ruby.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论