forked from mirror/go-json
Support InputOffset
This commit is contained in:
parent
6583ab9b31
commit
66b0490583
|
@ -252,7 +252,7 @@ func (d *Decoder) DisallowUnknownFields() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Decoder) InputOffset() int64 {
|
func (d *Decoder) InputOffset() int64 {
|
||||||
return 0
|
return d.s.totalOffset()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UseNumber causes the Decoder to unmarshal a number into an interface{} as a
|
// UseNumber causes the Decoder to unmarshal a number into an interface{} as a
|
||||||
|
|
Loading…
Reference in New Issue