You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Listen function creates servers:
ln, err := net.Listen("tcp", ":8080")
The comment for Listen says:
See Dial for the syntax of laddr.
The comment for Dial says:
For TCP and UDP networks, addresses have the form host:port.
This contradicts the example in the Overview section, which elides the host. Assuming the Overview example is correct, the comment for Dial comment should be updated to describe what happens if the host and/or port is omitted.
The text was updated successfully, but these errors were encountered:
See http://golang.org/pkg/net/.
The example in the Overview section says:
The comment for
Listen
says:The comment for
Dial
says:This contradicts the example in the Overview section, which elides the host. Assuming the Overview example is correct, the comment for
Dial
comment should be updated to describe what happens if the host and/or port is omitted.The text was updated successfully, but these errors were encountered: