|
|
@ -7,11 +7,13 @@ import (
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// EnterToContinue let stdin waiting for an enter key to continue.
|
|
|
|
func EnterToContinue() {
|
|
|
|
func EnterToContinue() {
|
|
|
|
fmt.Print("Press 'Enter' to continue...")
|
|
|
|
fmt.Print("Press 'Enter' to continue...")
|
|
|
|
bufio.NewReader(os.Stdin).ReadBytes('\n')
|
|
|
|
bufio.NewReader(os.Stdin).ReadBytes('\n')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ReadLine shows prompt to stdout and read a line from stdin.
|
|
|
|
func ReadLine(prompt string) string {
|
|
|
|
func ReadLine(prompt string) string {
|
|
|
|
fmt.Print(prompt)
|
|
|
|
fmt.Print(prompt)
|
|
|
|
input, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
|
|
|
input, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
|
|
|