From 9996f7f17adca8af6b34c4df6870e88d289a65a9 Mon Sep 17 00:00:00 2001
From: Russ Cox 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