github.com/jackc/pgtype.Inet.IPNet (field)
20 uses
github.com/jackc/pgtype (current package)
inet.go#L19: IPNet *net.IPNet
inet.go#L38: *dst = Inet{IPNet: &value, Status: Present}
inet.go#L45: *dst = Inet{IPNet: &net.IPNet{Mask: mask, IP: value}, Status: Present}
inet.go#L52: *dst = Inet{IPNet: ipnet, Status: Present}
inet.go#L84: return dst.IPNet
inet.go#L98: IP: make(net.IP, len(src.IPNet.IP)),
inet.go#L99: Mask: make(net.IPMask, len(src.IPNet.Mask)),
inet.go#L101: copy(v.IP, src.IPNet.IP)
inet.go#L102: copy(v.Mask, src.IPNet.Mask)
inet.go#L105: if oneCount, bitCount := src.IPNet.Mask.Size(); oneCount != bitCount {
inet.go#L108: *v = make(net.IP, len(src.IPNet.IP))
inet.go#L109: copy(*v, src.IPNet.IP)
inet.go#L148: *dst = Inet{IPNet: ipnet, Status: Present}
inet.go#L172: *dst = Inet{IPNet: &ipnet, Status: Present}
inet.go#L185: return append(buf, src.IPNet.String()...), nil
inet.go#L198: switch len(src.IPNet.IP) {
inet.go#L204: return nil, fmt.Errorf("Unexpected IP length: %v", len(src.IPNet.IP))
inet.go#L209: ones, _ := src.IPNet.Mask.Size()
inet.go#L215: buf = append(buf, byte(len(src.IPNet.IP)))
inet.go#L217: return append(buf, src.IPNet.IP...), nil
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |