代码拉取完成,页面将自动刷新
(Screencast taken with cho45/KeyCast)
gore
After a prompt is shown, enter any Go expressions/statements/functions or commands described below.
To quit the session, type Ctrl-D
or use :q
command.
gore -autoimport
)Some functionalities are provided as commands in the REPL:
:import <package path> Import package
:type <expr> Print the type of expression
:print Show current source
:write [<filename>] Write out current source to file
:clear Clear the codes
:doc <expr or pkg> Show document
:help List commands
:quit Quit the session
The gore command requires Go tool-chains on runtime, so standalone binary is not distributed.
GO111MODULE=off go get -u github.com/motemen/gore/cmd/gore
Make sure $GOPATH/bin
is in your $PATH
.
Also recommended:
GO111MODULE=off go get -u github.com/mdempsky/gocode # for code completion
GO111MODULE=off go get -u github.com/k0kubun/pp # or github.com/davecgh/go-spew/spew
too many arguments in call to mainScope.LookupParent
while installing gore, run go get -u golang.org/x/tools/go/types
.go run
for each input. If you have entered
time-consuming code, gore will run it for each input and take some time.go get my/package
,
then :import
will work properly.motemen <motemen@gmail.com>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。