diff --git a/doc/go1.html b/doc/go1.html index af9bbd779a8..a20bd13115b 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -686,6 +686,21 @@ the correct function or method for the old functionality, but may have the wrong type or require further analysis.

+

The hash package

+ +

+In Go 1, the definition of hash.Hash includes +a new method, BlockSize. This new method is used primarily in the +cryptographic libraries. +

+ +

+Updating: +Existing implementations of hash.Hash will need to add a +BlockSize method. Hashes that process the input one byte at +a time can implement BlockSize to return 1. +

+

The html package

diff --git a/doc/go1.tmpl b/doc/go1.tmpl index 98517041192..40bd7cba934 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -590,6 +590,21 @@ the correct function or method for the old functionality, but may have the wrong type or require further analysis.

+

The hash package

+ +

+In Go 1, the definition of hash.Hash includes +a new method, BlockSize. This new method is used primarily in the +cryptographic libraries. +

+ +

+Updating: +Existing implementations of hash.Hash will need to add a +BlockSize method. Hashes that process the input one byte at +a time can implement BlockSize to return 1. +

+

The html package