diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-16 02:34:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-16 02:34:25 +0800 |
commit | 28948d061cfc14d7a5da307a12ebd504b78d2dbb (patch) | |
tree | 168772cef16e9fb7eea6727d4ae254097d277ce1 /ethereum/repl_windows.go | |
parent | 288f1c5387c1a0a8863499389e8a7ca7e3068208 (diff) | |
download | dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.gz dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.bz2 dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.lz dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.xz dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.zst dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.zip |
Moved the repl to a new package
Diffstat (limited to 'ethereum/repl_windows.go')
-rw-r--r-- | ethereum/repl_windows.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ethereum/repl_windows.go b/ethereum/repl_windows.go deleted file mode 100644 index 9d4787772..000000000 --- a/ethereum/repl_windows.go +++ /dev/null @@ -1,24 +0,0 @@ -package main - -import ( - "bufio" - "fmt" - "os" -) - -func (self *JSRepl) read() { - reader := bufio.NewReader(os.Stdin) - for { - fmt.Printf(self.prompt) - str, _, err := reader.ReadLine() - if err != nil { - fmt.Println("Error reading input", err) - } else { - self.parseInput(string(str)) - } - } -} - -func (self *JSRepl) PrintValue(value otto.Value) { - fmt.Println(value) -} |