aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-26 18:56:04 -0400
committeradnano <[email protected]>2020-09-26 18:56:10 -0400
commite28e547bcf0dc7b4273e3483665936f531add648 (patch)
treedfbfe27bdb8772f601ad399953fcf311105c9876 /examples
parentReject requests containing '..' in them (diff)
downloadgo-gemini-e28e547bcf0dc7b4273e3483665936f531add648.tar.xz
go-gemini-e28e547bcf0dc7b4273e3483665936f531add648.zip
Adjust user prompt in client example
Diffstat (limited to 'examples')
-rw-r--r--examples/client/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/client/client.go b/examples/client/client.go
index 5ac68ed..8bbc6b8 100644
--- a/examples/client/client.go
+++ b/examples/client/client.go
@@ -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"