An Inet4Addr represents an internet address for IPv4.
| 20 | |
| 21 | // An Inet4Addr represents an internet address for IPv4. |
| 22 | type Inet4Addr struct { |
| 23 | IP [4]byte // IP address |
| 24 | PrefixLen int // address prefix length |
| 25 | } |
| 26 | |
| 27 | // Family implements the Family method of Addr interface. |
| 28 | func (a *Inet4Addr) Family() int { return syscall.AF_INET } |
nothing calls this directly
no outgoing calls
no test coverage detected