simple bash script implementing a Go REPL

685 views
Skip to first unread message

Michael Elkins

unread,
Nov 14, 2009, 2:57:47 PM11/14/09
to 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

unread,
Jul 8, 2014, 10:28:32 PM7/8/14
to golan...@googlegroups.com, michael...@gmail.com

"Access forbidden" for this site.


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

mic...@manulis.com

unread,
Oct 19, 2014, 1:29:45 AM10/19/14
to 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
Reply all
Reply to author
Forward
0 new messages