gojay

high performance JSON encoder/decoder with stream API for Golang
git clone git://git.lair.cx/gojay
Log | Files | Refs | README | LICENSE

commit 6467aae897ebdb0611fbc812ca49b6f5997f8f6b
parent 2f2cca6aadb7a17f07ce1223814f81606ed90e80
Author: Marco Paganini <paganini@paganini.net>
Date:   Fri, 21 Sep 2018 19:28:04 -0700

Fix various Unarshal->Unmarshal typos.

Diffstat:
Mdecode_array.go | 6+++---
Mdecode_object.go | 6+++---
Mgojay/gen_array_unmarshal_tpl.go | 2+-
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/decode_array.go b/decode_array.go @@ -174,7 +174,7 @@ func (dec *Decoder) skipArray() (int, error) { return 0, dec.raiseInvalidJSONErr(dec.cursor) } -// DecodeArrayFunc is a custom func type implementing UnarshaleArray. +// DecodeArrayFunc is a custom func type implementing UnmarshalerJSONArray. // Use it to cast a func(*Decoder) to Unmarshal an object. // // str := "" @@ -184,12 +184,12 @@ func (dec *Decoder) skipArray() (int, error) { // })) type DecodeArrayFunc func(*Decoder) error -// UnmarshalJSONArray implements UnarshalerArray. +// UnmarshalJSONArray implements UnmarshalerJSONArray. func (f DecodeArrayFunc) UnmarshalJSONArray(dec *Decoder) error { return f(dec) } -// IsNil implements UnarshalerArray. +// IsNil implements UnmarshalerJSONArray. func (f DecodeArrayFunc) IsNil() bool { return f == nil } diff --git a/decode_object.go b/decode_object.go @@ -341,7 +341,7 @@ func (dec *Decoder) skipData() error { return dec.raiseInvalidJSONErr(dec.cursor) } -// DecodeObjectFunc is a custom func type implementing UnarshaleObject. +// DecodeObjectFunc is a custom func type implementing UnmarshalerJSONObject. // Use it to cast a func(*Decoder) to Unmarshal an object. // // str := "" @@ -351,12 +351,12 @@ func (dec *Decoder) skipData() error { // })) type DecodeObjectFunc func(*Decoder, string) error -// UnmarshalJSONObject implements UnarshalerObject. +// UnmarshalJSONObject implements UnmarshalerJSONObject. func (f DecodeObjectFunc) UnmarshalJSONObject(dec *Decoder, k string) error { return f(dec, k) } -// NKeys implements UnarshalerObject. +// NKeys implements UnmarshalerJSONObject. func (f DecodeObjectFunc) NKeys() int { return 0 } diff --git a/gojay/gen_array_unmarshal_tpl.go b/gojay/gen_array_unmarshal_tpl.go @@ -66,5 +66,5 @@ var arrUnmarshalTpl = templateList{ } func init() { - parseTemplates(arrUnmarshalTpl, "arrUnarshal") + parseTemplates(arrUnmarshalTpl, "arrUnmarshal") }