Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
9996f7f1
Commit
9996f7f1
authored
Mar 01, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: describe API changes to go/build
R=golang-dev, gri, r CC=golang-dev
https://golang.org/cl/5711059
parent
e8c970e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
doc/go1.html
doc/go1.html
+16
-0
doc/go1.tmpl
doc/go1.tmpl
+16
-0
No files found.
doc/go1.html
View file @
9996f7f1
...
...
@@ -1283,6 +1283,22 @@ with the iterator <a href="/pkg/go/token/#FileSet.Iterate"><code>Iterate</code><
accepts a function argument instead.
</p>
<p>
In package
<a
href=
"/pkg/go/build/"
><code>
go/build
</code></a>
, the API
has been nearly completely replaced.
The package still computes Go package information
but it does not run the build: the
<code>
Cmd
</code>
and
<code>
Script
</code>
types are gone.
(To build code, use the new
<a
href=
"/cmd/go/"
><code>
go
</code></a>
command instead.)
The
<code>
DirInfo
</code>
type is now named
<a
href=
"/pkg/go/build/#Package"
><code>
Package
</code></a>
.
<code>
FindTree
</code>
and
<code>
ScanDir
</code>
are replaced by
<a
href=
"/pkg/go/build/#Import"
><code>
Import
</code></a>
and
<a
href=
"/pkg/go/build/#ImportDir"
><code>
ImportDir
</code></a>
.
</p>
<p>
<em>
Updating
</em>
:
Code that uses packages in
<code>
go
</code>
will have to be updated by hand; the
...
...
doc/go1.tmpl
View file @
9996f7f1
...
...
@@ -1186,6 +1186,22 @@ with the iterator <a href="/pkg/go/token/#FileSet.Iterate"><code>Iterate</code><
accepts
a
function
argument
instead
.
</
p
>
<
p
>
In
package
<
a
href
=
"/pkg/go/build/"
><
code
>
go
/
build
</
code
></
a
>,
the
API
has
been
nearly
completely
replaced
.
The
package
still
computes
Go
package
information
but
it
does
not
run
the
build
:
the
<
code
>
Cmd
</
code
>
and
<
code
>
Script
</
code
>
types
are
gone
.
(
To
build
code
,
use
the
new
<
a
href
=
"/cmd/go/"
><
code
>
go
</
code
></
a
>
command
instead
.)
The
<
code
>
DirInfo
</
code
>
type
is
now
named
<
a
href
=
"/pkg/go/build/#Package"
><
code
>
Package
</
code
></
a
>.
<
code
>
FindTree
</
code
>
and
<
code
>
ScanDir
</
code
>
are
replaced
by
<
a
href
=
"/pkg/go/build/#Import"
><
code
>
Import
</
code
></
a
>
and
<
a
href
=
"/pkg/go/build/#ImportDir"
><
code
>
ImportDir
</
code
></
a
>.
</
p
>
<
p
>
<
em
>
Updating
</
em
>:
Code
that
uses
packages
in
<
code
>
go
</
code
>
will
have
to
be
updated
by
hand
;
the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment