go语言 repl
Go lang is fast to compile and can be used as a script by go run prog.go
. However, a REPL is more convenient for testing/trying some small pieces of code. Any good Go REPL implementation / tool?
Go lang的编译速度很快,可以通过go run prog.go
用作脚本 。 但是,REPL对于测试/尝试一些小的代码段更为方便。 有什么好的Go REPL实施/工具吗?
Try gore https://github.com/motemen/gore
尝试戈尔https://github.com/motemen/gore
Get gore
得到血腥
$ go get -u github.com/motemen/gore
An example
一个例子
$ gore
gore version 0.2.6 :help for help
gore> :import fmt
gore> fmt.Println("hello world!")
hello world!
13
nil
gore>
血腥>
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/any-good-go-repl-implementation-tool/
go语言 repl