diff options
author | Robert Griesemer <gri@golang.org> | 2010-03-02 13:46:51 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-03-02 13:46:51 -0800 |
commit | 10f55215a4d4ac643bf04202704b4fec01417bba (patch) | |
tree | e6032529c69dbf4925dc7da8a0641ff6bb264b3d /src/pkg/net | |
parent | edc1c5e40d5b639a38b7a0b7484d51edab3bcb62 (diff) | |
download | golang-10f55215a4d4ac643bf04202704b4fec01417bba.tar.gz |
gofmt: experiment: align values in map composites where possible
- gofmt -w src misc
- looking for feedback
R=rsc, r
CC=golang-dev
http://codereview.appspot.com/223076
Diffstat (limited to 'src/pkg/net')
-rw-r--r-- | src/pkg/net/dnsmsg.go | 18 | ||||
-rw-r--r-- | src/pkg/net/fd.go | 10 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/pkg/net/dnsmsg.go b/src/pkg/net/dnsmsg.go index 01bb49078..adedcab99 100644 --- a/src/pkg/net/dnsmsg.go +++ b/src/pkg/net/dnsmsg.go @@ -246,16 +246,16 @@ func (rr *_DNS_RR_A) Header() *_DNS_RR_Header { return &rr.Hdr } var rr_mk = map[int]func() _DNS_RR{ _DNS_TypeCNAME: func() _DNS_RR { return new(_DNS_RR_CNAME) }, _DNS_TypeHINFO: func() _DNS_RR { return new(_DNS_RR_HINFO) }, - _DNS_TypeMB: func() _DNS_RR { return new(_DNS_RR_MB) }, - _DNS_TypeMG: func() _DNS_RR { return new(_DNS_RR_MG) }, + _DNS_TypeMB: func() _DNS_RR { return new(_DNS_RR_MB) }, + _DNS_TypeMG: func() _DNS_RR { return new(_DNS_RR_MG) }, _DNS_TypeMINFO: func() _DNS_RR { return new(_DNS_RR_MINFO) }, - _DNS_TypeMR: func() _DNS_RR { return new(_DNS_RR_MR) }, - _DNS_TypeMX: func() _DNS_RR { return new(_DNS_RR_MX) }, - _DNS_TypeNS: func() _DNS_RR { return new(_DNS_RR_NS) }, - _DNS_TypePTR: func() _DNS_RR { return new(_DNS_RR_PTR) }, - _DNS_TypeSOA: func() _DNS_RR { return new(_DNS_RR_SOA) }, - _DNS_TypeTXT: func() _DNS_RR { return new(_DNS_RR_TXT) }, - _DNS_TypeA: func() _DNS_RR { return new(_DNS_RR_A) }, + _DNS_TypeMR: func() _DNS_RR { return new(_DNS_RR_MR) }, + _DNS_TypeMX: func() _DNS_RR { return new(_DNS_RR_MX) }, + _DNS_TypeNS: func() _DNS_RR { return new(_DNS_RR_NS) }, + _DNS_TypePTR: func() _DNS_RR { return new(_DNS_RR_PTR) }, + _DNS_TypeSOA: func() _DNS_RR { return new(_DNS_RR_SOA) }, + _DNS_TypeTXT: func() _DNS_RR { return new(_DNS_RR_TXT) }, + _DNS_TypeA: func() _DNS_RR { return new(_DNS_RR_A) }, } // Pack a domain name s into msg[off:]. diff --git a/src/pkg/net/fd.go b/src/pkg/net/fd.go index 743bcfa47..83705a5a8 100644 --- a/src/pkg/net/fd.go +++ b/src/pkg/net/fd.go @@ -301,12 +301,12 @@ func newFD(fd, family, proto int, net string, laddr, raddr Addr) (f *netFD, err return nil, &OpError{"setnonblock", net, laddr, os.Errno(e)} } f = &netFD{ - sysfd: fd, + sysfd: fd, family: family, - proto: proto, - net: net, - laddr: laddr, - raddr: raddr, + proto: proto, + net: net, + laddr: laddr, + raddr: raddr, } var ls, rs string if laddr != nil { |