소스 검색

Drop newline when reading input in REPL

Alois Mahdal 3 일 전
부모
커밋
a97c81dc3a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      app/main.go

+ 1
- 1
app/main.go 파일 보기

@@ -15,7 +15,7 @@ func getInput(ctx *core.Context) (string, error) {
15 15
 	if err != nil {
16 16
 		return "", err
17 17
 	}
18
-	return input, nil
18
+	return input[:len(input)-1], nil
19 19
 }
20 20
 
21 21
 func repl(ctx *core.Context) {