1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02: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" "flag"
"fmt" "fmt"
"os" "os"
"strings"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
@ -75,5 +76,5 @@ func getInput(prompt string) string {
reader := bufio.NewReader(os.Stdin) reader := bufio.NewReader(os.Stdin)
fmt.Print(prompt) fmt.Print(prompt)
text, _ := reader.ReadString('\n') text, _ := reader.ReadString('\n')
return text return strings.TrimSpace(text)
} }