小白求助练习:Stringers

```go package main import "fmt" type IPAddr [4]byte func (v IPAddr) String() string{ return fmt.Sprintf("%v.%v.%v.%v", v[0],v[1],v[2],v[3]) } func main(){ addrs := map[string]IPAddr{ "loopback": {127,0,0,1}, "googleDNS": {8,8,8...阅读全文

2016-04-27 12:24:26