From 03ea8b1c811007bb0c33effb782628e290f914a4 Mon Sep 17 00:00:00 2001
From: Rob Pike BlockSize. This new method is used primarily in the
cryptographic libraries.
+The Sum method of the
+hash.Hash interface now takes a
+[]byte argument, to which the hash value will be appended.
+The previous behavior can be recreated by adding a nil argument to the call.
+
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 in Go 1 provides
-a full parser for HTML5.
+Gofix will update calls to the Sum methods of the various
+implementations of hash.Hash.
@@ -1124,14 +1126,29 @@ Gofix will update almost all code affected by the change.
In Go 1, the various SetTimeout,
+
+In Go 1, the various SetTimeout,
SetReadTimeout, and SetWriteTimeout methods
-have been replaced with SetDeadline,
-SetReadDeadline, and SetWriteDeadline,
+have been replaced with
+SetDeadline,
+SetReadDeadline, and
+SetWriteDeadline,
respectively. Rather than taking a timeout value in nanoseconds that
apply to any activity on the connection, the new methods set an
absolute deadline (as a time.Time value) after which
-reads and writes will time out and no longer block.
+There is also a new net.DialTimeout method to simplify +timing out dialing a network address. +
+ ++Updating: +Code that uses the old methods will fail to compile and must be updated by hand. +The semantic change makes it difficult for gofix to update automatically. +
BlockSize. This new method is used primarily in the
cryptographic libraries.
+
+The Sum method of the
+hash.Hash interface now takes a
+[]byte argument, to which the hash value will be appended.
+The previous behavior can be recreated by adding a nil argument to the call.
+
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 in Go 1 provides
-a full parser for HTML5.
+Gofix will update calls to the Sum methods of the various
+implementations of hash.Hash.
@@ -1027,14 +1029,29 @@ Gofix will update almost all code affected by the change.
In Go 1, the various SetTimeout,
+
+In Go 1, the various SetTimeout,
SetReadTimeout, and SetWriteTimeout methods
-have been replaced with SetDeadline,
-SetReadDeadline, and SetWriteDeadline,
+have been replaced with
+SetDeadline,
+SetReadDeadline, and
+SetWriteDeadline,
respectively. Rather than taking a timeout value in nanoseconds that
apply to any activity on the connection, the new methods set an
absolute deadline (as a time.Time value) after which
-reads and writes will time out and no longer block.
+There is also a new net.DialTimeout method to simplify +timing out dialing a network address. +
+ ++Updating: +Code that uses the old methods will fail to compile and must be updated by hand. +The semantic change makes it difficult for gofix to update automatically. +