net: document where service names come from? #31249
Comments
https://golang.org/pkg/net/#Listen references Perhaps we should mention that comes from /etc/services (or equivalent, depending on OS). |
@bradfitz How about mention that service name is defined in RFC 6335, and assigned by IANA For each OS:
Document each OS seems too much details. |
Is there missing a description of the address format in general? -- Empty host or port, port "0", square brackets for ipv6 addresses, ... As a reader of the comment I would also be interested in what does using the service name effectively means -- will it be port 80 or a dynamically assigned port from the 80** range? Can we do something like this?
|
As this issue has been inactive for a while, I'll submit a PR following @luka-zitnik suggestion. |
Change https://golang.org/cl/191557 mentions this issue: |
Fixes golang#31249 Change-Id: I3280f8ab170ed31d4efb71106533e016d430d44c Reviewed-on: https://go-review.googlesource.com/c/go/+/191557 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Fixes golang#31249 Change-Id: I3280f8ab170ed31d4efb71106533e016d430d44c Reviewed-on: https://go-review.googlesource.com/c/go/+/191557 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Found in
net/http/server.go
:What is this ":http" exactly? Presumably an alias, but I can't find any concrete documentation to know what it resolves to.
go/src/net/http/server.go
Line 2477 in 964fe4b
The text was updated successfully, but these errors were encountered: