]> Cypherpunks repositories - gostls13.git/commit
net: simplify internal dtoi and xtoi funcs
authorDan Peterson <dpiddy@gmail.com>
Tue, 16 Aug 2016 16:33:27 +0000 (13:33 -0300)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 17 Aug 2016 03:12:29 +0000 (03:12 +0000)
commit00b779aeed9e0345e4bdbb38c85df63a6352b954
treef7b1cdfda140fdfb52e08bdad2c1ce073704b546
parent9c13eb3729988af8be1fd00175bacdd20c7d4206
net: simplify internal dtoi and xtoi funcs

Callers pass strings sliced as necessary instead of giving
an offset.

Fixes #16350

Change-Id: I7ba896f6ff09e0fd0094ca6c5af5d9a81622f15e
Reviewed-on: https://go-review.googlesource.com/27206
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
13 files changed:
src/net/conf.go
src/net/dial.go
src/net/dnsconfig_unix.go
src/net/interface.go
src/net/ip.go
src/net/ipsock_plan9.go
src/net/lookup_plan9.go
src/net/lookup_unix.go
src/net/lookup_windows_test.go
src/net/parse.go
src/net/parse_test.go
src/net/port_unix.go
src/net/sock_linux.go