Support InputOffset

This commit is contained in:
Masaaki Goshima 2020-07-31 20:31:14 +09:00
parent 6583ab9b31
commit 66b0490583
1 changed files with 1 additions and 1 deletions

View File

@ -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