type Addr … // String returns $ip/$netmask $label func (a Addr) String() string { … } // ParseAddr parses the string representation of an address in the // form $ip/$netmask $label. The label portion is optional func ParseAddr(s string) (*Addr, error) { … } // Equal returns true if both Addrs have the same net.IPNet value. func (a Addr) Equal(x Addr) bool { … } func (a Addr) PeerEqual(x Addr) bool { … }