Adjust user prompt in client example
This commit is contained in:
parent
a1a2523c5c
commit
e28e547bcf
@ -106,14 +106,14 @@ func makeRequest(url string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func userTrustsCertificateTemporarily() bool {
|
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 := bufio.NewScanner(os.Stdin)
|
||||||
scanner.Scan()
|
scanner.Scan()
|
||||||
return scanner.Text() == "y"
|
return scanner.Text() == "y"
|
||||||
}
|
}
|
||||||
|
|
||||||
func userTrustsCertificatePermanently() bool {
|
func userTrustsCertificatePermanently() bool {
|
||||||
fmt.Println("How about permanently? (y/n)")
|
fmt.Print("How about permanently? (y/n) ")
|
||||||
scanner := bufio.NewScanner(os.Stdin)
|
scanner := bufio.NewScanner(os.Stdin)
|
||||||
scanner.Scan()
|
scanner.Scan()
|
||||||
return scanner.Text() == "y"
|
return scanner.Text() == "y"
|
||||||
|
Loading…
Reference in New Issue
Block a user