mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Update helpers.go
add MarshalerUnmarshaler interface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user