1
0
mirror of https://github.com/schollz/croc.git synced 2024-12-27 15:55:41 +03:00

working on ui

This commit is contained in:
Zack Scholl 2017-10-17 19:02:25 -06:00
parent 67f7a9b965
commit cee7c087ba

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