From: Andrew Bonventre Date: Wed, 18 Jul 2018 19:04:02 +0000 (-0400) Subject: doc: update go1.11 release notes X-Git-Tag: go1.11beta2~48 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=96b5f6dd1d933cdfac82b323131f5b8a8785a088;p=gostls13.git doc: update go1.11 release notes Update text/scanner and text/template sections. Change-Id: I1a273e99ff400870053cca63cea68fb7a9b56764 Reviewed-on: https://go-review.googlesource.com/124705 Reviewed-by: Andrew Bonventre --- diff --git a/doc/go1.11.html b/doc/go1.11.html index a688e67a4f..df5cede349 100644 --- a/doc/go1.11.html +++ b/doc/go1.11.html @@ -132,10 +132,6 @@ Do not send CLs removing the interior tags from such phrases.

Modules, package versioning, and dependency management

- - NOTE: This is not present in go1.11beta1 but will be available in future - betas and subsequent releases. - Go 1.11 adds preliminary support for a new concept called “modules,” an alternative to GOPATH with integrated support for versioning and package distribution. @@ -711,7 +707,8 @@ func f(v interface{}) {

text/scanner

- TODO: https://golang.org/cl/112037: return RawString token rather than String for raw string literals + Scan() now returns a RawString token instead of String + for raw string literals.

@@ -719,11 +716,26 @@ func f(v interface{}) {
text/template

- TODO: https://golang.org/cl/84480: add variable assignments + Modifying template variables via assignments is now permitted via the = token: +

+
+  {{"{{"}} $v := "init" {{"}}"}}
+  {{"{{"}} if true {{"}}"}}
+    {{"{{"}} $v = "changed" {{"}}"}}
+  {{"{{"}} end {{"}}"}}
+  v: {{"{{"}} $v {{"}}"}} {{"{{"}}/* "changed" */{{"}}"}}
+ +

+ This required backwards-incompatible changes to the text/template/parse + package, but was deemed acceptable since the package's documentation clearly states + that it isn't intended for general use.

- TODO: https://golang.org/cl/95215: differentiate nil from missing arg + In previous versions, passing an untyped nil to a template function + would result in an incorrect error stating that the function was missing an argument. + Errors resulting from untyped nil values being passed to template-evaluated functions + are now properly reported.