From cee7c087bac656d0fc7b6a14e6efdef432951c76 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Tue, 17 Oct 2017 19:02:25 -0600 Subject: [PATCH] working on ui --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b5a054b..b8172d6 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "flag" "fmt" "os" + "strings" log "github.com/sirupsen/logrus" ) @@ -75,5 +76,5 @@ func getInput(prompt string) string { reader := bufio.NewReader(os.Stdin) fmt.Print(prompt) text, _ := reader.ReadString('\n') - return text + return strings.TrimSpace(text) }