You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
360 B

package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func askForUsername() string {
newcommand := bufio.NewReader(os.Stdin)
fmt.Print("enter username: @")
username, _ := newcommand.ReadString('\n')
username = strings.TrimSpace(username)
fmt.Print("user selected: ")
c.Cyan("@" + username)
fmt.Println("-----------------------")
return username
}