The godoc for MarshalPKIXPublicKey and ParsePKIXPublicKey say, e.g. "ParsePKIXPublicKey parses a public key in PKIX, ASN.1 DER form." However, PKIX (RFC 5280), does not define a "public key" type. Instead, it defines a SubjectPublicKeyInfo type, which is what these methods are using. The docs should reference the more specific type name, and link straight to the RFC 5280 documentation for clarity.
As an aside, the ParseECPrivateKey docs incorrectly say "ParseECPrivateKey parses an EC public key".
If the Go team agrees this is a positive change, I'm happy to send a change.
The godoc for MarshalPKIXPublicKey and ParsePKIXPublicKey say, e.g. "ParsePKIXPublicKey parses a public key in PKIX, ASN.1 DER form." However, PKIX (RFC 5280), does not define a "public key" type. Instead, it defines a SubjectPublicKeyInfo type, which is what these methods are using. The docs should reference the more specific type name, and link straight to the RFC 5280 documentation for clarity.
As an aside, the ParseECPrivateKey docs incorrectly say "ParseECPrivateKey parses an EC public key".
If the Go team agrees this is a positive change, I'm happy to send a change.