simple bash script implementing a Go REPL

已查看 672 次
跳至第一个未读帖子

Michael Elkins

未读,
2009年11月14日 14:57:472009/11/14
收件人 golang-nuts
Since the Go gc compilers are so fast, I wrote up a quick bash script
so that I could evaluation Go code snippets in a REPL fashion.

As an example:

go> s:="hello, world"; fmt.Printf("%s", s)
hello, world
go>

The script automatically detects use of common packages (configurable)
and generates proper import statements in the generated code.

http://www.cs.hmc.edu/~me/gorepl

me

rong...@gmail.com

未读,
2014年7月8日 22:28:322014/7/8
收件人 golan...@googlegroups.com、michael...@gmail.com

"Access forbidden" for this site.


在 2009年11月15日星期日UTC+8上午3时57分47秒,Michael Elkins写道:

mic...@manulis.com

未读,
2014年10月19日 01:29:452014/10/19
收件人 golan...@googlegroups.com、michael...@gmail.com
The link is marked "Access forbidden".  Any chance you'd share the bash script in a public gist (http://gist.github.com)?

Misha
回复全部
回复作者
转发
0 个新帖子