1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:54:40 -07:00

doc/go1.html: add notes about hash.Hash

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5536053
This commit is contained in:
Russ Cox 2012-01-18 10:36:43 -05:00
parent a5263c7caa
commit 1f1c9baf78
2 changed files with 30 additions and 0 deletions

View File

@ -686,6 +686,21 @@ the correct function or method for the old functionality, but
may have the wrong type or require further analysis.
</p>
<h3 id="hash">The hash package</h3>
<p>
In Go 1, the definition of <a href="/pkg/hash/#Hash"><code>hash.Hash</code></a> includes
a new method, <code>BlockSize</code>. This new method is used primarily in the
cryptographic libraries.
</p>
<p>
<em>Updating</em>:
Existing implementations of <code>hash.Hash</code> will need to add a
<code>BlockSize</code> method. Hashes that process the input one byte at
a time can implement <code>BlockSize</code> to return 1.
</p>
<h3 id="html">The html package</h3>
<p>

View File

@ -590,6 +590,21 @@ the correct function or method for the old functionality, but
may have the wrong type or require further analysis.
</p>
<h3 id="hash">The hash package</h3>
<p>
In Go 1, the definition of <a href="/pkg/hash/#Hash"><code>hash.Hash</code></a> includes
a new method, <code>BlockSize</code>. This new method is used primarily in the
cryptographic libraries.
</p>
<p>
<em>Updating</em>:
Existing implementations of <code>hash.Hash</code> will need to add a
<code>BlockSize</code> method. Hashes that process the input one byte at
a time can implement <code>BlockSize</code> to return 1.
</p>
<h3 id="html">The html package</h3>
<p>