Doc of x509.MarshalPKCS8PrivateKey says:
MarshalPKCS8PrivateKey converts an RSA private key to PKCS#8, ASN.1 DER form.
But immediately after doc says that it also supports ECDSA and ED25519 key types:
The following key types are currently supported: *rsa.PrivateKey, *ecdsa.PrivateKey and ed25519.PrivateKey. Unsupported key types result in an error.
I think that the "RSA" word in first line should be removed.
If this is confirmed, I can take care of this doc fix.
Doc of
x509.MarshalPKCS8PrivateKeysays:But immediately after doc says that it also supports ECDSA and ED25519 key types:
I think that the "RSA" word in first line should be removed.
If this is confirmed, I can take care of this doc fix.