mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Added comment to clarify usage of MarshalEasyJSON implementation in nested interface{} tests.
This commit is contained in:
@@ -19,5 +19,7 @@ type NestedEasyMarshaler struct {
|
||||
var _ easyjson.Marshaler = &NestedEasyMarshaler{}
|
||||
|
||||
func (i *NestedEasyMarshaler) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
// We use this method only to indicate that easyjson.Marshaler
|
||||
// interface was really used while encoding.
|
||||
i.EasilyMarshaled = true
|
||||
}
|
||||
Reference in New Issue
Block a user