diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2013-04-02 13:24:16 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-04-02 13:24:16 -0700 |
commit | e4e606ef2838933c4974f478f7da221b80a2b1f7 (patch) | |
tree | 814c8638fadf7f95a1704bbbfb69c576f6252873 /doc/go1.1.html | |
parent | 3916da7daf1954465e1a13f0a88495bd79e6bfcf (diff) | |
download | go-e4e606ef2838933c4974f478f7da221b80a2b1f7.tar.gz |
net: delete DialOpt and DialOption; add struct Dialer
Per discussions on golang-nuts and golang-dev:
"Some concerns with DialOpt"
https://groups.google.com/d/msg/golang-nuts/Hfh9aqhXyUw/W3uYi8lOdKcJ
https://groups.google.com/d/msg/golang-dev/37omSQeWv4Y/KASGIfPpXh0J
R=golang-dev, google, r
CC=golang-dev
https://codereview.appspot.com/8274043
Diffstat (limited to 'doc/go1.1.html')
-rw-r--r-- | doc/go1.1.html | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/doc/go1.1.html b/doc/go1.1.html index 75eb02d45..e2db58adc 100644 --- a/doc/go1.1.html +++ b/doc/go1.1.html @@ -779,16 +779,9 @@ Since this API change fixes a bug, it is permitted by the Go 1 compatibility rul </li> <li> -The <a href="/pkg/net/"><code>net</code></a> package includes a new function, -<a href="/pkg/net/#DialOpt"><code>DialOpt</code></a>, to supply options to -<a href="/pkg/net/#Dial"><code>Dial</code></a>. -Each option is represented by a new -<a href="/pkg/net/#DialOption"><code>DialOption</code></a> interface. -The new functions -<a href="/pkg/net/#Deadline"><code>Deadline</code></a>, -<a href="/pkg/net/#Timeout"><code>Timeout</code></a>, -<a href="/pkg/net/#Network"><code>Network</code></a>, and -<a href="/pkg/net/#LocalAddress"><code>LocalAddress</code></a> return a <code>DialOption</code>. +The <a href="/pkg/net/"><code>net</code></a> package includes a new type, +<a href="/pkg/net/#Dialer"><code>Dialer</code></a>, to supply options to +<a href="/pkg/net/#Dialer.Dial"><code>Dial</code></a>. </li> <li> |