1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2025-05-01 10:47:54 +02:00

Adjust user prompt in client example

This commit is contained in:
adnano 2020-09-26 18:56:04 -04:00
parent a44bbcb9f9
commit f3345ae327

@ -106,14 +106,14 @@ func makeRequest(url string) {
}
func userTrustsCertificateTemporarily() bool {
fmt.Println("Do you want to trust the certificate temporarily? (y/n)")
fmt.Print("Do you want to trust the certificate temporarily? (y/n) ")
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
return scanner.Text() == "y"
}
func userTrustsCertificatePermanently() bool {
fmt.Println("How about permanently? (y/n)")
fmt.Print("How about permanently? (y/n) ")
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
return scanner.Text() == "y"