From: Brad Fitzpatrick Date: Sun, 29 Jul 2018 19:11:55 +0000 (+0000) Subject: doc/go1.11: note that godoc now shows the Go version that added features X-Git-Tag: go1.11beta3~62 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=12d27d8ea5a6980b741564e2229c281dedb547d2;p=gostls13.git doc/go1.11: note that godoc now shows the Go version that added features Change-Id: Ie613a707dad1ac69627e1d7584d7d4e311db22f7 Reviewed-on: https://go-review.googlesource.com/126622 Reviewed-by: Andrew Bonventre --- diff --git a/doc/go1.11.html b/doc/go1.11.html index da722fb31a..f372f6676d 100644 --- a/doc/go1.11.html +++ b/doc/go1.11.html @@ -310,6 +310,18 @@ func f(v interface{}) { user task/region analysis page.

+

Godoc

+ +

+ The godoc 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 UserCacheDir, 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 + ClientTrace.Got1xxResponse. +

+

Gofmt