Russ Cox
03823b881c
use new time API
...
R=bradfitz, gri, r, dsymonds
CC=golang-dev
https://golang.org/cl/5390042
2011-11-30 12:01:46 -05:00
Anthony Martin
a6c501e4b1
net, io/ioutil: remove use of os.Time
...
I had to replace the single use of io/ioutil
in the time package with a bytes.Buffer since
there would've been a dependency cycle.
There are no other uses of os.Time.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5372054
2011-11-11 14:40:41 -05:00
Mikio Hara
f3ad899a2d
net: fix typo
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4315049
2011-04-05 11:35:16 +10:00
Kyle Lemons
a4f6ed3574
net: add LookupAddr
...
R=adg, rsc
CC=golang-dev
https://golang.org/cl/3851041
2011-01-19 15:11:03 -05:00
Russ Cox
69c4e9380b
use append
...
R=gri, r, r2
CC=golang-dev
https://golang.org/cl/2743042
2010-10-27 19:47:23 -07:00
Russ Cox
c7122a3c58
simplify various code using new map index rule
...
R=r
CC=golang-dev
https://golang.org/cl/833044
2010-03-30 10:51:11 -07:00
Michael Hoisie
dd97923d82
net: fix segfault if /etc/hosts fails to open or doesn't exist
...
R=rsc
CC=golang-dev, r
https://golang.org/cl/194043
2010-01-26 16:18:29 -08:00
Andrey Mirtchovski
3fc41d5e65
net: parse aliases in /etc/hosts correctly
...
Previous behaviour only picked the first entry (official hostname) but not the aliases.
R=rsc
CC=golang-dev
https://golang.org/cl/193092
2010-01-25 14:57:04 -08:00
Yves Junqueira
d6054fcd88
Use /etc/hosts when resolving names.
...
http://code.google.com/p/go/issues/detail?id=313
This conflics with Chris' patch at:
https://golang.org/cl/181063
But I believe this is more complete since it has a simple caching and proper tests.
R=cw, rsc
CC=golang-dev
https://golang.org/cl/183066
2010-01-15 13:43:14 -08:00