From 0c6c960753ca7e8dd7d6512cbea01feb327f53ef Mon Sep 17 00:00:00 2001 From: Alexandr Mayorskiy Date: Mon, 27 Jul 2020 19:11:22 +0300 Subject: [PATCH] Update helpers.go add MarshalerUnmarshaler interface --- helpers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helpers.go b/helpers.go index 447e492..78dacb1 100644 --- a/helpers.go +++ b/helpers.go @@ -22,6 +22,12 @@ type Unmarshaler interface { UnmarshalEasyJSON(w *jlexer.Lexer) } +// MarshalerUnmarshaler is an easyjson-compatible marshaler/unmarshaler interface. +type MarshalerUnmarshaler interface { + Marshaler + Unmarshaler +} + // Optional defines an undefined-test method for a type to integrate with 'omitempty' logic. type Optional interface { IsDefined() bool