diff options
| author | adnano <[email protected]> | 2020-09-21 18:30:55 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-21 18:30:55 -0400 |
| commit | 81974a9e006611f2ee4e3b632815440fe91db02d (patch) | |
| tree | 4ab2d7192160eed38a3db1797031479fc667a359 | |
| parent | Add link to documentation in README.md (diff) | |
| download | go-gemini-81974a9e006611f2ee4e3b632815440fe91db02d.tar.xz go-gemini-81974a9e006611f2ee4e3b632815440fe91db02d.zip | |
Update Client documentation
| -rw-r--r-- | client.go | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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 } |