gore: Yet another Go REPL

gore: Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.

Features

  • Line editing with history
  • Multi-line input
  • Package importing with completion
  • Evaluates any expressions, statements and function declarations
  • No „evaluated but not used“ errors
  • Code completion (requires gocode)
  • Showing documents
  • Auto-importing (gore -autoimport)

Installation

The gore command requires Go tool-chains on runtime, so standalone binary is not distributed.

go get -u github.com/motemen/gore/cmd/gore

Make sure $GOPATH/bin is in your $PATH.

Also recommended:

go get -u github.com/mdempsky/gocode   # for code completion
Publikováno v Go