Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
75e9d242
Commit
75e9d242
authored
Jan 26, 2012
by
Gustavo Niemeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/go1: fix urls
R=golang-dev, r CC=golang-dev
https://golang.org/cl/5577051
parent
eb122773
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
go1.html
doc/go1.html
+10
-10
go1.tmpl
doc/go1.tmpl
+10
-10
No files found.
doc/go1.html
View file @
75e9d242
...
...
@@ -936,13 +936,13 @@ for that purpose.
<p>
The set of parse functions provided by the
<a
href=
"/pkg/go/parser/"
><code>
go/parser
</code></a>
package has been reduced to the primary parse function
<a
href=
"go/parser/#ParseFile"
><code>
ParseFile
</code></a>
, and a couple of
convenience functions
<a
href=
"go/parser/#ParseDir"
><code>
ParseDir
</code></a>
and
<a
href=
"go/parser/#ParseExpr"
><code>
ParseExpr
</code></a>
.
<a
href=
"
/pkg/
go/parser/#ParseFile"
><code>
ParseFile
</code></a>
, and a couple of
convenience functions
<a
href=
"
/pkg/
go/parser/#ParseDir"
><code>
ParseDir
</code></a>
and
<a
href=
"
/pkg/
go/parser/#ParseExpr"
><code>
ParseExpr
</code></a>
.
</p>
<p>
The type names of the
<a
href=
"go/doc/"
><code>
go/doc
</code></a>
package have been
The type names of the
<a
href=
"
/pkg/
go/doc/"
><code>
go/doc
</code></a>
package have been
streamlined by removing the
<code>
Doc
</code>
suffix:
<code>
PackageDoc
</code>
is now
<code>
Package
</code>
,
<code>
ValueDoc
</code>
is
<code>
Value
</code>
, etc.
Also, all types now consistently have a
<code>
Name
</code>
field (or
<code>
Names
</code>
,
...
...
@@ -958,19 +958,19 @@ documentation for a package is created with:
<p>
where the new
<code>
mode
</code>
parameter specifies the operation mode:
if set to
<a
href=
"go/doc/#AllDecls"
><code>
AllDecls
</code></a>
, all declarations
if set to
<a
href=
"
/pkg/
go/doc/#AllDecls"
><code>
AllDecls
</code></a>
, all declarations
(not just exported ones) are considered.
The function
<code>
NewFileDoc
</code>
was removed, and the function
<code>
CommentText
</code>
has become the method
<a
href=
"go/ast/#Text"
><code>
Text
</code></a>
of
<a
href=
"go/ast/#CommentGroup"
><code>
ast.CommentGroup
</code></a>
.
<a
href=
"
/pkg/
go/ast/#Text"
><code>
Text
</code></a>
of
<a
href=
"
/pkg/
go/ast/#CommentGroup"
><code>
ast.CommentGroup
</code></a>
.
</p>
<p>
In package
<a
href=
"go/token/"
><code>
go/token
</code></a>
, the
<a
href=
"go/token/#FileSet"
><code>
token.FileSet
</code></a>
method
<code>
Files
</code>
In package
<a
href=
"
/pkg/
go/token/"
><code>
go/token
</code></a>
, the
<a
href=
"
/pkg/
go/token/#FileSet"
><code>
token.FileSet
</code></a>
method
<code>
Files
</code>
(which originally returned a channel of
<code>
*token.File
</code>
s) has been replaced
with the iterator
<a
href=
"go/token/#FileSet.Iterate"
><code>
Iterate
</code></a>
that
with the iterator
<a
href=
"
/pkg/
go/token/#FileSet.Iterate"
><code>
Iterate
</code></a>
that
accepts a function argument instead.
</p>
...
...
doc/go1.tmpl
View file @
75e9d242
...
...
@@ -839,13 +839,13 @@ for that purpose.
<
p
>
The
set
of
parse
functions
provided
by
the
<
a
href
=
"/pkg/go/parser/"
><
code
>
go
/
parser
</
code
></
a
>
package
has
been
reduced
to
the
primary
parse
function
<
a
href
=
"go/parser/#ParseFile"
><
code
>
ParseFile
</
code
></
a
>,
and
a
couple
of
convenience
functions
<
a
href
=
"go/parser/#ParseDir"
><
code
>
ParseDir
</
code
></
a
>
and
<
a
href
=
"go/parser/#ParseExpr"
><
code
>
ParseExpr
</
code
></
a
>.
<
a
href
=
"
/pkg/
go/parser/#ParseFile"
><
code
>
ParseFile
</
code
></
a
>,
and
a
couple
of
convenience
functions
<
a
href
=
"
/pkg/
go/parser/#ParseDir"
><
code
>
ParseDir
</
code
></
a
>
and
<
a
href
=
"
/pkg/
go/parser/#ParseExpr"
><
code
>
ParseExpr
</
code
></
a
>.
</
p
>
<
p
>
The
type
names
of
the
<
a
href
=
"go/doc/"
><
code
>
go
/
doc
</
code
></
a
>
package
have
been
The
type
names
of
the
<
a
href
=
"
/pkg/
go/doc/"
><
code
>
go
/
doc
</
code
></
a
>
package
have
been
streamlined
by
removing
the
<
code
>
Doc
</
code
>
suffix
:
<
code
>
PackageDoc
</
code
>
is
now
<
code
>
Package
</
code
>,
<
code
>
ValueDoc
</
code
>
is
<
code
>
Value
</
code
>,
etc
.
Also
,
all
types
now
consistently
have
a
<
code
>
Name
</
code
>
field
(
or
<
code
>
Names
</
code
>,
...
...
@@ -861,19 +861,19 @@ documentation for a package is created with:
<
p
>
where
the
new
<
code
>
mode
</
code
>
parameter
specifies
the
operation
mode
:
if
set
to
<
a
href
=
"go/doc/#AllDecls"
><
code
>
AllDecls
</
code
></
a
>,
all
declarations
if
set
to
<
a
href
=
"
/pkg/
go/doc/#AllDecls"
><
code
>
AllDecls
</
code
></
a
>,
all
declarations
(
not
just
exported
ones
)
are
considered
.
The
function
<
code
>
NewFileDoc
</
code
>
was
removed
,
and
the
function
<
code
>
CommentText
</
code
>
has
become
the
method
<
a
href
=
"go/ast/#Text"
><
code
>
Text
</
code
></
a
>
of
<
a
href
=
"go/ast/#CommentGroup"
><
code
>
ast
.
CommentGroup
</
code
></
a
>.
<
a
href
=
"
/pkg/
go/ast/#Text"
><
code
>
Text
</
code
></
a
>
of
<
a
href
=
"
/pkg/
go/ast/#CommentGroup"
><
code
>
ast
.
CommentGroup
</
code
></
a
>.
</
p
>
<
p
>
In
package
<
a
href
=
"go/token/"
><
code
>
go
/
token
</
code
></
a
>,
the
<
a
href
=
"go/token/#FileSet"
><
code
>
token
.
FileSet
</
code
></
a
>
method
<
code
>
Files
</
code
>
In
package
<
a
href
=
"
/pkg/
go/token/"
><
code
>
go
/
token
</
code
></
a
>,
the
<
a
href
=
"
/pkg/
go/token/#FileSet"
><
code
>
token
.
FileSet
</
code
></
a
>
method
<
code
>
Files
</
code
>
(
which
originally
returned
a
channel
of
<
code
>*
token
.
File
</
code
>
s
)
has
been
replaced
with
the
iterator
<
a
href
=
"go/token/#FileSet.Iterate"
><
code
>
Iterate
</
code
></
a
>
that
with
the
iterator
<
a
href
=
"
/pkg/
go/token/#FileSet.Iterate"
><
code
>
Iterate
</
code
></
a
>
that
accepts
a
function
argument
instead
.
</
p
>
...
...
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