1
0
mirror of https://github.com/golang/go synced 2024-11-06 11:36:16 -07:00
go/src/encoding
Patrick Gundlach 0eea25159f encoding/xml: expose decoder line and column
The existing implementation of the xml decoder uses the line number
only for reporting syntax errors. The line number of the last read
token and the column within the line is useful for the users even
in non-error conditions.

Fixes #45628

Change-Id: I37b5033ff5ff8411793d8f5180f96aa4537e83f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/311270
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
2022-03-27 20:26:46 +00:00
..
ascii85 all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
asn1 all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
base32 all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
base64 all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
binary encoding/binary: add AppendByteOrder 2022-03-02 18:21:38 +00:00
csv all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
gob all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
hex encoding/hex: implement Decode with a lookup table 2022-03-11 21:51:20 +00:00
json encoding/json: use reflect.Value.UnsafePointer over Pointer 2022-03-02 17:42:53 +00:00
pem all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
xml encoding/xml: expose decoder line and column 2022-03-27 20:26:46 +00:00
encoding.go