aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack_test.go
diff options
context:
space:
mode:
authorKevin Burke <kev@inburke.com>2017-10-20 12:56:38 -0700
committerFilippo Valsorda <filippo@golang.org>2018-04-30 17:25:27 +0000
commit4154727e1b125a7d3398c9cc143eb36343c82bcc (patch)
tree35370d0450c541777cfda4584e7e31651884bd4e /src/runtime/stack_test.go
parent3334eee400ad4dc202f53d3efa34fddb013f9c17 (diff)
downloadgo-4154727e1b125a7d3398c9cc143eb36343c82bcc.tar.xz
crypto/tls: add examples for [Load]X509KeyPair
I was confused about how to start an HTTP server if the server cert/key are in memory, not on disk. I thought it would be good to show an example of how to use these two functions to accomplish that. example-cert.pem and example-key.pem were generated using crypto/tls/generate_cert.go. Change-Id: I850e1282fb1c38aff8bd9aeb51988d21fe307584 Reviewed-on: https://go-review.googlesource.com/72252 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/stack_test.go')
0 files changed, 0 insertions, 0 deletions