From 978af8a768be2ed4b0be249a2e87744d0ba8307d Mon Sep 17 00:00:00 2001 From: Miki Tebeka Date: Sun, 1 Mar 2015 05:57:02 +0200 Subject: running "gofmt" on the code --- go/src/step0_repl/step0_repl.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'go/src/step0_repl') diff --git a/go/src/step0_repl/step0_repl.go b/go/src/step0_repl/step0_repl.go index 2e4c47c..644a087 100644 --- a/go/src/step0_repl/step0_repl.go +++ b/go/src/step0_repl/step0_repl.go @@ -1,42 +1,42 @@ package main import ( - "fmt" - "strings" + "fmt" + "strings" ) import ( - "readline" + "readline" ) // read func READ(str string) string { - return str + return str } // eval func EVAL(ast string, env string) string { - return ast + return ast } // print func PRINT(exp string) string { - return exp + return exp } // repl func rep(str string) string { - return PRINT(EVAL(READ(str), "")) + return PRINT(EVAL(READ(str), "")) } func main() { - // repl loop - for { - text, err := readline.Readline("user> ") - text = strings.TrimRight(text, "\n"); - if (err != nil) { - return - } - fmt.Println(rep(text)) - } + // repl loop + for { + text, err := readline.Readline("user> ") + text = strings.TrimRight(text, "\n") + if err != nil { + return + } + fmt.Println(rep(text)) + } } -- cgit v1.2.3