Exemple #1
0
func doLogin(shell *ishell.Shell) {
	shell.ShowPrompt(false)
	defer shell.ShowPrompt(true)

	shell.Println("Let's simulate login")

	// prompt for input
	shell.Print("Username: "******"Password: "******"Your inputs were", username, "and", password+".")

}