Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: encoding/asn1: allow setting params on elements of slices #39027
encoding/asn1 currently provides a number of struct field tags to manipulate how fields are parsed/encoded, notably setting the time type, string type, or marking slices or structs as a SET rather than a SEQUENCE.
Unfortunately it is impossible to set these fields on elements of a slice. This makes it impossible to encode certain things like
The only real workaround for this is manually encoding/parsing each element of a slice with
Ideally there would be a way to set parameters for each member of the slice. Probably the simplest solution to this problem would be adding a new struct tag,
to be encoded as a