Closed akalin-keybase closed 7 years ago
Thanks.
Toarray means everything must be encoded, as we map the position to the array to the position of the field in the struct.
Will update comments and doc and then close.
Also updated doc at http://ugorji.net/blog/go-codec-primer
e.g. with
B2
will always be encoded.This isn't explicitly mentioned anywhere, and an example in http://ugorji.net/blog/go-codec-primer (
type My2
) incorrectly suggests it's possible. Or maybe it's planned to be? It would seem to be complicated/ambiguous in the general case, though.