gojay

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

commit 96026b09b54389d6d031abbf727c6654c7c95329
parent 4bfe9a336de8b0f1a350f53bcb5df3d327e6f42b
Author: Nimi Wariboko Jr <nimiwaribokoj@gmail.com>
Date:   Wed, 12 Sep 2018 16:19:44 -0700

README.md: Type fix in MarshalerJSONArray example
Diffstat:
MREADME.md | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -489,13 +489,13 @@ Example of implementation: ```go type users []*user // implement MarshalerJSONArray -func (u *users) MarshalJSONArray(dec *gojay.Decoder) { +func (u *users) MarshalJSONArray(enc *gojay.Encoder) { for _, e := range u { - enc.Object(e) - } + enc.Object(e) + } } func (u *users) IsNil() bool { - return len(u) == 0 + return len(u) == 0 } ```