mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
use easyjson.MarshalerUnmarshaler instead of custom (#299)
This commit is contained in:
@@ -6,14 +6,9 @@ import (
|
||||
"github.com/mailru/easyjson/jwriter"
|
||||
)
|
||||
|
||||
type MarshalerUnmarshaler interface {
|
||||
easyjson.Marshaler
|
||||
easyjson.Unmarshaler
|
||||
}
|
||||
|
||||
//easyjson:json
|
||||
type NestedMarshaler struct {
|
||||
Value MarshalerUnmarshaler
|
||||
Value easyjson.MarshalerUnmarshaler
|
||||
Value2 int
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user