From 91350a1827559ddaf24790813ed7c5f8efed384c Mon Sep 17 00:00:00 2001 From: amirrezaask Date: Sat, 19 Oct 2019 21:27:35 +0330 Subject: [PATCH] fix --- interpreter/.repl/sessions/605659000/go.mod | 3 +++ interpreter/.repl/sessions/605659000/main.go | 17 +++++++++++++++++ main.go | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 interpreter/.repl/sessions/605659000/go.mod create mode 100755 interpreter/.repl/sessions/605659000/main.go diff --git a/interpreter/.repl/sessions/605659000/go.mod b/interpreter/.repl/sessions/605659000/go.mod new file mode 100644 index 0000000..950fc76 --- /dev/null +++ b/interpreter/.repl/sessions/605659000/go.mod @@ -0,0 +1,3 @@ +module shell + +go 1.13 diff --git a/interpreter/.repl/sessions/605659000/main.go b/interpreter/.repl/sessions/605659000/main.go new file mode 100755 index 0000000..b3144c6 --- /dev/null +++ b/interpreter/.repl/sessions/605659000/main.go @@ -0,0 +1,17 @@ +package main + +type user struct { + Name string +} + +func Name() string {} + +var ( + x = 2 + _, y = 3, 4 + z = 2 +) + +func main() { + x += 2 +} diff --git a/main.go b/main.go index b6fcacd..a54e4dd 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "runtime/debug" "time" - "github.com/golobby/gshell/interpreter" + "github.com/golobby/repl/interpreter" "github.com/c-bata/go-prompt" )