gojay

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

commit 782368b0181975ebb70a34e8fc97604e504b8e4f
parent 4dbaa0e558653a0243286a132291818043fbc12a
Author: stephan <stephan.lauf@yahoo.de>
Date:   Fri, 27 Apr 2018 22:59:45 +0200

Fix bug in README.md decoding example

Diffstat:
MREADME.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -50,7 +50,7 @@ func (u *user) NKeys() int { func main() { u := &user{} d := []byte(`{"id":1,"name":"gojay","email":"gojay@email.com"}`) - err := gojay.UnmarshalObject(d, user) + err := gojay.UnmarshalObject(d, u) if err != nil { log.Fatal(err) }