Go语言中类似于Rails控制台的功能是什么?

huangapple go评论70阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2014年10月4日 23:00:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/26194022.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定