aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-28 00:41:00 -0400
committeradnano <[email protected]>2020-09-28 00:41:00 -0400
commit956a2bad524f8223de4582ac3033b65929ca50c3 (patch)
tree90810be4fac49b4e105c8b5d17c705a3552b293f /README.md
parentMake the default client generate certificates (diff)
downloadgo-gemini-956a2bad524f8223de4582ac3033b65929ca50c3.tar.xz
go-gemini-956a2bad524f8223de4582ac3033b65929ca50c3.zip
Remove NewCertificateStore function
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index e593e18..969f843 100644
--- a/README.md
+++ b/README.md
@@ -89,7 +89,7 @@ The default client handles this for you. Other clients must specify the fields
```go
// Initialize the certificate store.
-client.CertificateStore = gmi.NewCertificateStore()
+client.CertificateStore = gmi.CertificateStore{}
// GetCertificate is called when a server requests a certificate.
// The returned certificate, if not nil, will be used when resending the request.
client.GetCertificate = func(hostname string, store gmi.CertificateStore) *tls.Certificate {