forked from cerc-io/plugeth
21 lines
294 B
Go
21 lines
294 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"bufio"
|
||
|
"fmt"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func (self *JSRepl) read() {
|
||
|
reader := bufio.NewReader(os.Stdin)
|
||
|
for {
|
||
|
fmt.Printf("eth >>> ")
|
||
|
str, _, err := reader.ReadLine()
|
||
|
if err != nil {
|
||
|
fmt.Println("Error reading input", err)
|
||
|
} else {
|
||
|
self.parseInput(string(str))
|
||
|
}
|
||
|
}
|
||
|
}
|