Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.
(Screencast taken with cho45/KeyCast)
After a prompt is shown, enter any Go expressions/statements or commands described below.
To quit the session, type
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 :quit Quit the session
gore uses Go toolchains, so I don’t provide binaries.
go get -u github.com/motemen/gore
$GOPATH/bin is in your
go get -u github.com/nsf/gocode go get -u github.com/k0kubun/pp # or github.com/davecgh/go-spew/spew go get -u golang.org/x/tools/cmd/godoc
If you see
too many arguments in call to mainScope.LookupParentwhile installing gore, run
go get -u golang.org/x/tools/go/types.
gore runs code using
go runfor each input. If you have entered time-consuming code, gore will run it for each input and take some time.
Direct editing of code
Using external sources