From 9996f7f17adca8af6b34c4df6870e88d289a65a9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 1 Mar 2012 18:17:28 -0500 Subject: [PATCH] doc: describe API changes to go/build R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/5711059 --- doc/go1.html | 16 ++++++++++++++++ doc/go1.tmpl | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) 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