aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-27 14:23:25 -0400
committeradnano <[email protected]>2020-09-27 14:23:25 -0400
commit188c3457e6af0d6f09ba792d9385917ac695e665 (patch)
tree66c21372d9ce2a33a5b74e5b06a9b818664c4128 /examples
parentHandle multiple DNS names (diff)
downloadgo-gemini-188c3457e6af0d6f09ba792d9385917ac695e665.tar.xz
go-gemini-188c3457e6af0d6f09ba792d9385917ac695e665.zip
Fix client example
Diffstat (limited to 'examples')
-rw-r--r--examples/client/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client/client.go b/examples/client/client.go
index f61e3b3..d3e2156 100644
--- a/examples/client/client.go
+++ b/examples/client/client.go
@@ -49,7 +49,7 @@ func init() {
// To generate a TLS key pair, run:
//
// go run -tags=example ../cert
- var cert tls.Certificate
+ var err error
cert, err = tls.LoadX509KeyPair("examples/client/localhost.crt", "examples/client/localhost.key")
if err != nil {
log.Fatal(err)