From 1f1c9baf78330d2a6293a583fbaa44872bf8d2e9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 18 Jan 2012 10:36:43 -0500 Subject: [PATCH] doc/go1.html: add notes about hash.Hash R=golang-dev, r CC=golang-dev https://golang.org/cl/5536053 --- doc/go1.html | 15 +++++++++++++++ doc/go1.tmpl | 15 +++++++++++++++ 2 files changed, 30 insertions(+) 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