From 66b0490583c1dd615f72b81c3592cbb32326616c Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Fri, 31 Jul 2020 20:31:14 +0900 Subject: [PATCH] Support InputOffset --- decode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode.go b/decode.go index 057533e..e9b1c31 100644 --- a/decode.go +++ b/decode.go @@ -252,7 +252,7 @@ func (d *Decoder) DisallowUnknownFields() { } func (d *Decoder) InputOffset() int64 { - return 0 + return d.s.totalOffset() } // UseNumber causes the Decoder to unmarshal a number into an interface{} as a