diff --git a/gojay/codegen/template.go b/gojay/codegen/template.go index 6b1ddb6..901552c 100644 --- a/gojay/codegen/template.go +++ b/gojay/codegen/template.go @@ -171,9 +171,9 @@ func ({{.Receiver}}) IsNil() bool { } // UnmarshalJSONObject implements gojay's UnmarshalerJSONObject -func ({{.Receiver}}) UnmarshalJSONObject(dec *gojay.Decoder, k string) error { +func ({{.Receiver}}) UnmarshalJSONObject(dec *gojay.Decoder, key string) error { {{.InitEmbedded}} - switch k { + switch key { {{.DecodingCases}} } return nil