mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
working on ui
This commit is contained in:
parent
67f7a9b965
commit
cee7c087ba
1 changed files with 2 additions and 1 deletions
3
main.go
3
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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue