From: Ian Lance Taylor Date: Wed, 7 Mar 2012 01:50:11 +0000 (-0800) Subject: doc: add note about import . to Go 1 compatibility notes X-Git-Tag: weekly.2012-03-13~171 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=25f15d5f22ef27a4452dd7924159e85d17f75648;p=gostls13.git doc: add note about import . to Go 1 compatibility notes R=r CC=golang-dev https://golang.org/cl/5752065 --- diff --git a/doc/go1compat.html b/doc/go1compat.html index 3804634f5d..1dfd382c23 100644 --- a/doc/go1compat.html +++ b/doc/go1compat.html @@ -94,6 +94,15 @@ We therefore recommend that composite literals whose type is defined in a separate package should use the tagged notation. +
  • +Dot imports. If a program imports a standard package +using import . "path", additional names defined in the +imported package in future releases may conflict with other names +defined in the program. We do not recommend the use of import . +outside of tests, and using it may cause a program to fail +to compile in future releases. +
  • +