]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: better documentation for ParsePKIXPublicKey
authorDatong Sun <dndx@idndx.com>
Sat, 20 Feb 2016 08:39:07 +0000 (02:39 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 26 Feb 2016 06:36:10 +0000 (06:36 +0000)
commitc8ae2e82c7262df1fa902b847e09f0aa776e7ccd
treeb49738afc5b36e940d91784a24f173fae3744f70
parent49d1e307108c4a52e65112926ce5f1acb04fd8d7
crypto/x509: better documentation for ParsePKIXPublicKey

The existing documentation for ParsePKIXPublicKey is difficult to understand
and the return type of the parsed public key are not mentioned explicitly.

Descriptions about types of public key supported, as well as an example on
how to use type assertions to determine return type of a parsed public key
has been added.

Fixes #14355

Change-Id: Ib9561efb34255292735742c0b3e835c4b97ac589
Reviewed-on: https://go-review.googlesource.com/19757
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/x509/example_test.go
src/crypto/x509/x509.go