diff options
author | Andy Pan <panjf2000@gmail.com> | 2020-01-12 19:57:42 +0800 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2020-01-12 12:57:42 +0100 |
commit | 59b28fe0e54664073ac4e422511ca8af718b26b0 (patch) | |
tree | 0cd033c59367fd2829f3331fdd7ea8af9c49cf4a /examples | |
parent | Forward context in fasthttpadaptor (#720) (diff) | |
download | fasthttp-59b28fe0e54664073ac4e422511ca8af718b26b0.tar.gz fasthttp-59b28fe0e54664073ac4e422511ca8af718b26b0.tar.bz2 fasthttp-59b28fe0e54664073ac4e422511ca8af718b26b0.zip |
Resolve code issues from goreportcard.com (#725)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multidomain/multidomain.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/multidomain/multidomain.go b/examples/multidomain/multidomain.go index 598dda7..862f9c9 100644 --- a/examples/multidomain/multidomain.go +++ b/examples/multidomain/multidomain.go @@ -69,6 +69,7 @@ func main() { fmt.Println(server.ListenAndServeTLS(":8080", "", "")) } +// GenerateCert generates certificate and private key based on the given host. func GenerateCert(host string) ([]byte, []byte, error) { priv, err := rsa.GenerateKey(rand.Reader, 2048) if err != nil { |