diff --git a/doc/go1.html b/doc/go1.html index 5837104893e..0ec097499ac 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -1283,6 +1283,22 @@ with the iterator Iterate< accepts a function argument instead.

+

+In package go/build, the API +has been nearly completely replaced. +The package still computes Go package information +but it does not run the build: the Cmd and Script +types are gone. +(To build code, use the new +go command instead.) +The DirInfo type is now named +Package. +FindTree and ScanDir are replaced by +Import +and +ImportDir. +

+

Updating: Code that uses packages in go will have to be updated by hand; the diff --git a/doc/go1.tmpl b/doc/go1.tmpl index ccbda8d1570..c1dd9a8f067 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -1186,6 +1186,22 @@ with the iterator Iterate< accepts a function argument instead.

+

+In package go/build, the API +has been nearly completely replaced. +The package still computes Go package information +but it does not run the build: the Cmd and Script +types are gone. +(To build code, use the new +go command instead.) +The DirInfo type is now named +Package. +FindTree and ScanDir are replaced by +Import +and +ImportDir. +

+

Updating: Code that uses packages in go will have to be updated by hand; the