~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to doc/go1.html

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
618
618
 
619
619
<ul>
620
620
<li><code>old/netchan</code></li>
621
 
<li><code>old/regexp</code></li>
622
 
<li><code>old/template</code></li>
623
621
</ul>
624
622
 
625
623
<p>
639
637
<li><code>container/vector</code></li>
640
638
<li><code>exp/datafmt</code></li>
641
639
<li><code>go/typechecker</code></li>
 
640
<li><code>old/regexp</code></li>
 
641
<li><code>old/template</code></li>
642
642
<li><code>try</code></li>
643
643
</ul>
644
644
 
998
998
<p>
999
999
In Go 1, the
1000
1000
<a href="/pkg/crypto/x509/#CreateCertificate"><code>CreateCertificate</code></a>
1001
 
and
1002
 
<a href="/pkg/crypto/x509/#CreateCRL"><code>CreateCRL</code></a>
1003
 
functions in <code>crypto/x509</code> have been altered to take an
 
1001
function and
 
1002
<a href="/pkg/crypto/x509/#Certificate.CreateCRL"><code>CreateCRL</code></a>
 
1003
method in <code>crypto/x509</code> have been altered to take an
1004
1004
<code>interface{}</code> where they previously took a <code>*rsa.PublicKey</code>
1005
1005
or <code>*rsa.PrivateKey</code>. This will allow other public key algorithms
1006
1006
to be implemented in the future.
1183
1183
(not just exported ones) are considered.
1184
1184
The function <code>NewFileDoc</code> was removed, and the function
1185
1185
<code>CommentText</code> has become the method
1186
 
<a href="/pkg/go/ast/#Text"><code>Text</code></a> of
 
1186
<a href="/pkg/go/ast/#CommentGroup.Text"><code>Text</code></a> of
1187
1187
<a href="/pkg/go/ast/#CommentGroup"><code>ast.CommentGroup</code></a>.
1188
1188
</p>
1189
1189
 
1497
1497
with more Go-like names, such as
1498
1498
<a href="/pkg/os/#ErrPermission"><code>ErrPermission</code></a>
1499
1499
and
1500
 
<a href="/pkg/os/#ErrNoEnv"><code>ErrNoEnv</code></a>.
 
1500
<a href="/pkg/os/#ErrNotExist"><code>ErrNotExist</code></a>.
1501
1501
</p>
1502
1502
 
1503
1503
<p>
1676
1676
The <code>WalkFunc</code> function will be called even for files or directories that could not be opened;
1677
1677
in such cases the error argument will describe the failure.
1678
1678
If a directory's contents are to be skipped,
1679
 
the function should return the value <a href="/pkg/path/filepath/#variables"><code>filepath.SkipDir</code></a>
 
1679
the function should return the value <a href="/pkg/path/filepath/#pkg-variables"><code>filepath.SkipDir</code></a>
1680
1680
</p>
1681
1681
 
1682
1682
{{code "/doc/progs/go1.go" `/STARTWALK/` `/ENDWALK/`}}
1865
1865
The imports will be updated by fix tool.
1866
1866
Single-template uses will be otherwise be largely unaffected.
1867
1867
Code that uses multiple templates in concert will need to be updated by hand.
1868
 
The <a href="/pkg/text/template/#examples">examples</a> in
 
1868
The <a href="/pkg/text/template/#pkg-examples">examples</a> in
1869
1869
the documentation for <code>text/template</code> can provide guidance.
1870
1870
</p>
1871
1871