From e45ae64a512bb55289babde30445da173374e00f Mon Sep 17 00:00:00 2001 From: mxmsk Date: Thu, 13 Oct 2016 12:35:02 +0300 Subject: [PATCH] Added comment to clarify usage of MarshalEasyJSON implementation in nested interface{} tests. --- tests/nested_easy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/nested_easy.go b/tests/nested_easy.go index c7f0f4b..6309a49 100644 --- a/tests/nested_easy.go +++ b/tests/nested_easy.go @@ -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 } \ No newline at end of file