aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoop Kiefte <ikojba@gmail.com>2023-09-28 02:22:14 +0100
committerJoop Kiefte <ikojba@gmail.com>2023-09-28 02:22:14 +0100
commitf96bd87db4dd3e0d1a1785b5a6022acce33b5ae0 (patch)
treeafed16dc05cb1c45f398b986ad9513c6942b7549
parent8522596998d08c317ff8dd6e183f4ed99cd477af (diff)
Remove readline newline
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index d7acac1..c5aecc2 100644
--- a/main.go
+++ b/main.go
@@ -120,7 +120,7 @@ func Readline() string {
// Read a line from stdin
reader := bufio.NewReader(os.Stdin)
text, _ := reader.ReadString('\n')
- return text
+ return text[:len(text)-1]
}
func ExecuteDoltCommand(args ...string) {