Added comment to clarify usage of MarshalEasyJSON implementation in nested interface{} tests.

This commit is contained in:
mxmsk
2016-10-13 12:35:02 +03:00
committed by Marat Khasanov
parent 5c5e85117e
commit e45ae64a51
+2
View File
@@ -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
}