]> Cypherpunks repositories - gostls13.git/commit
encoding/json: add Decoder.InputOffset for offset access
authorFrancesco Renzi <rentziass@gmail.com>
Fri, 11 Oct 2019 12:59:15 +0000 (13:59 +0100)
committerIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2019 16:34:01 +0000 (16:34 +0000)
commitba108c93b864aaa10814e010b4e2efead21516ec
tree05f34c1122291c53f4cab5575c2e5558d0723131
parentac8966aa581a4b5178d40bca36854461f234f85e
encoding/json: add Decoder.InputOffset for offset access

This makes Decoder.offset public while renaming it to
Decoder.InputOffset to match encoding/xml Decoder API

Code changes made by Adam Stankiewicz [sheerun@sher.pl]

Fixes #29688

Change-Id: I86dbfd2b2da80160846e92bfa580c53d8d45e2db
Reviewed-on: https://go-review.googlesource.com/c/go/+/200677
Run-TryBot: Johan Brandhorst <johan.brandhorst@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/encoding/json/stream.go