Descriptionnet: There's no need for prefixBefore() function.
net or netProto argument are a choice of constants strings. It's not necessary to search a prefix in it.
Actual code permit to write 'Dial("tcp:foobarbazquux", "", host) which may lead to confusion.
ListenPacket() is modified to permit a net:proto string
Patch Set 1 : code review 4129042: net: There's no need for prefixBefore() function. #Patch Set 2 : diff -r 3972eb64f7cd https://go.googlecode.com/hg/ #
MessagesTotal messages: 12
|