]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.11: note that godoc now shows the Go version that added features
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 29 Jul 2018 19:11:55 +0000 (19:11 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 29 Jul 2018 20:05:41 +0000 (20:05 +0000)
Change-Id: Ie613a707dad1ac69627e1d7584d7d4e311db22f7
Reviewed-on: https://go-review.googlesource.com/126622
Reviewed-by: Andrew Bonventre <andybons@golang.org>
doc/go1.11.html

index da722fb31a102d0797bbbfd657468d0ab215323d..f372f6676dd5809d4d40c8d5c461031bd8ad5fe5 100644 (file)
@@ -310,6 +310,18 @@ func f(v interface{}) {
   user task/region analysis page.
 </p>
 
+<h3 id="godoc">Godoc</h3>
+
+<p><!-- CL 85396, CL 124495 -->
+  The <code>godoc</code> web server now shows which version of Go introduced
+  new API features. The initial Go version of types, funcs, and methods are shown
+  right-aligned. For example, see <a href="/pkg/os/#UserCacheDir"><code>UserCacheDir</code></a>, with "1.11"
+  on the right side. For struct fields, inline comments are added when the struct field was
+  added in a Go version other than when the type itself was introduced.
+  For a struct field example, see
+  <a href="/pkg/net/http/httptrace/#ClientTrace.Got1xxResponse"><code>ClientTrace.Got1xxResponse</code></a>.
+</p>
+
 <h3 id="gofmt">Gofmt</h3>
 
 <p>