go-pry
go-pry - an interactive REPL for Go that allows you to drop into your code at any point.
Usage
Install go-pry
go get github.com/d4l3k/go-pry
go install github.com/d4l3k/go-pry
Add the pry statement to the code
import "github.com/d4l3k/go-pry/pry"
...
func main() {
a : = 1
pry.Pry()
}
Run the code
# Run
go-pry <go file>
Inspiration
go-pry is greatly inspired by Pry REPL for Ruby.
License
go-pry is licensed under the MIT license.