Skip to content

Commit 97f63d0

Browse files
committed
Improve docs formatting on NetConn
1 parent ce67a44 commit 97f63d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

netconn.go

+4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ import (
1111
)
1212

1313
// NetConn converts a *websocket.Conn into a net.Conn.
14+
//
1415
// Every Write to the net.Conn will correspond to a binary message
1516
// write on *webscoket.Conn.
17+
//
1618
// Close will close the *websocket.Conn with StatusNormalClosure.
19+
//
1720
// When a deadline is hit, the connection will be closed. This is
1821
// different from most net.Conn implementations where only the
1922
// reading/writing goroutines are interrupted but the connection is kept alive.
23+
//
2024
// The Addr methods will return a mock net.Addr.
2125
func NetConn(c *Conn) net.Conn {
2226
nc := &netConn{

0 commit comments

Comments
 (0)