1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-09-29 16:31:18 +02:00

Update Client documentation

This commit is contained in:
adnano 2020-09-21 18:30:55 -04:00
parent 5ec35d84db
commit 81974a9e00

@ -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
}