Larry Hunter
Results
2
comments of
Larry Hunter
This issue is more general and affects all custom encoders accepted by `json` and `xml` packages (maybe other?): ```golang encoding.TextMarshaler json.Marshaler xml.Marshaler xml.MarshalerAttr ``` More examples at: - https://play.golang.org/p/4pkPQSGa7E (for...
A minimal solution could be: clarify the behavior of each custom encoders by adding that `T` value receiver is the expected usage and `*T` pointer receiver may fail to be...