From: Robert Griesemer "tcp"
,
"tcp4"
, and "tcp6"
, the Go 1.0 implementation silently accepted any string.
The Go 1.1 implementation returns an error if the network is not one of those strings.
-The same is true of the other protocol-specific resolvers ResolveIPAddr
,
-ResolveUDPAddr
, and
-ResolveUnixAddr
.
+The same is true of the other protocol-specific resolvers ResolveIPAddr
,
+ResolveUDPAddr
, and
+ResolveUnixAddr
.
@@ -396,7 +396,7 @@ returned a
UDPConn
as
a representation of the connection endpoint.
The Go 1.1 implementation instead returns a
-UnixConn
+UnixConn
to allow reading and writing
with its
ReadFrom
@@ -683,11 +683,11 @@ to define the boundary separator used to package the output.
net
package's
-net/ListenUnixgram
+net/ListenUnixgram
function has changed return types: it now returns a
-net/UnixConn
+net/UnixConn
rather than a
-net/UDPConn
, which was
+net/UDPConn
, which was
clearly a mistake in Go 1.0.
Since this API change fixes a bug, it is permitted by the Go 1 compatibility rules.