Skip to content

Commit 0c6c960

Browse files
authored
Update helpers.go
add MarshalerUnmarshaler interface
1 parent 5c65c6f commit 0c6c960

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

helpers.go

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ type Unmarshaler interface {
2222
UnmarshalEasyJSON(w *jlexer.Lexer)
2323
}
2424

25+
// MarshalerUnmarshaler is an easyjson-compatible marshaler/unmarshaler interface.
26+
type MarshalerUnmarshaler interface {
27+
Marshaler
28+
Unmarshaler
29+
}
30+
2531
// Optional defines an undefined-test method for a type to integrate with 'omitempty' logic.
2632
type Optional interface {
2733
IsDefined() bool

0 commit comments

Comments
 (0)