working on ui

This commit is contained in:
Zack Scholl 2017-10-17 19:02:25 -06:00
parent 67f7a9b965
commit cee7c087ba
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}