]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: mention new method encoding/json.Decoder.InputOffset
authorIan Lance Taylor <iant@golang.org>
Fri, 31 Jan 2020 00:42:21 +0000 (16:42 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 31 Jan 2020 23:07:05 +0000 (23:07 +0000)
Updates #29688
Updates #36878

Change-Id: I230889ec3f1c183dc5adbc662a39a791c0488497
Reviewed-on: https://go-review.googlesource.com/c/go/+/217123
Reviewed-by: Alexander Rakoczy <alex@golang.org>
doc/go1.14.html

index 75e04a6821488ca43a833bd4b2765eb711126ddf..a4767d786f85b2a3397590ccc079fd15e0614b30 100644 (file)
@@ -522,6 +522,14 @@ TODO
 
 <dl id="encoding/json"><dt><a href="/pkg/encoding/json/">encoding/json</a></dt>
   <dd>
+    <p><!-- CL 200677 -->
+      The <a href="/pkg/encoding/json/#Decoder"><code>Decoder</code></a>
+      type supports a new
+      method <a href="/pkg/encoding/json/#Decoder.InputOffset"><code>InputOffset</code></a>
+      that returns the input stream byte offset of the current
+      decoder position.
+    </p>
+
     <p><!-- CL 200217 -->
       <a href="/pkg/encoding/json/#Compact"><code>Compact</code></a> no longer
       escapes the <code>U+2028</code> and <code>U+2029</code> characters, which