Commit 12d27d8e authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

doc/go1.11: note that godoc now shows the Go version that added features

Change-Id: Ie613a707dad1ac69627e1d7584d7d4e311db22f7
Reviewed-on: https://go-review.googlesource.com/126622Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
parent f6a5fada
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment