Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: crypto/x509: create typed versions of ParsePKCS8PrivateKey #26485
It bothers me that me as an end-user of
We should utilize Go's strong type system to create type-specific functions called for example
I agree with Adam (https://go-review.googlesource.com/c/go/+/125056/4#message-46b6bcfdedbc7383393b0e37c5a640be477bd615) that the increased API surface is not worth it. There is already a dizzying array of Parse functions in crypto/x509, and the type assertion is not much more work than checking the error.