Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.
(Screencast taken with cho45/KeyCast)
gore
After a prompt is shown, enter any Go expressions/statements or commands described below.
To quit the session, type Ctrl-D
.
Some functionalities are provided as colon-commands:
:import <package path> Import package :print Show current source :write [<filename>] Write out current source to file :doc <expr or pkg> Show document (requires godoc) :help List commands
gore uses Go toolchains, so I don’t provide binaries.
go get github.com/motemen/gore
Also recommended:
go get github.com/nsf/gocode go get github.com/k0kubun/pp # or github.com/davecgh/go-spew go get golang.org/x/tools/cmd/godoc
-
gore runs code using
go run
for each input. If you have entered time-consuming code, gore will run it for each input and take some time.
-
Undoing input
-
Configuration
-
:write completion
-
Direct editing of code
-
Using external sources
-
API
motemen <motemen@gmail.com>