Update helpers.go

add MarshalerUnmarshaler interface
This commit is contained in:
Alexandr Mayorskiy
2020-07-27 19:11:22 +03:00
committed by GitHub
parent 5c65c6fc0e
commit 0c6c960753
+6
View File
@@ -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