From 81974a9e006611f2ee4e3b632815440fe91db02d Mon Sep 17 00:00:00 2001 From: adnano Date: Mon, 21 Sep 2020 18:30:55 -0400 Subject: [PATCH] Update Client documentation --- client.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/client.go b/client.go index fda626e..6a55a4d 100644 --- a/client.go +++ b/client.go @@ -15,19 +15,19 @@ var ( ) // Client is a Gemini client. +// To use a client-side certificate, provide it here. +// +// Example: +// +// config := tls.Config{} +// cert, err := tls.LoadX509KeyPair("client.crt", "client.key") +// if err != nil { +// panic(err) +// } +// config.Certificates = append(config.Certificates, cert) +// type Client struct { // The client's TLS configuration. - // To use a client-side certificate, provide it here. - // - // Example: - // - // config := tls.Config{} - // cert, err := tls.LoadX509KeyPair("example/server/server.crt", "example/server/server.key") - // if err != nil { - // panic(err) - // } - // config.Certificates = append(config.Certificates, cert) - // TLSConfig tls.Config }