package
Version:
v0.0.0-...-38a6bf8
Opens a new window with list of versions in this module.
Published: Jun 13, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IPAddr wraps net.IP to provide SQL driver support for PostgreSQL inet values.
Equal returns true if the two IPAddr values are equal.
IP returns the underlying net.IP.
Scan implements sql.Scanner for IPAddr.
It handles both string and []byte inputs from PostgreSQL.
String returns the IP address as a string.
Value implements driver.Valuer for IPAddr.
It converts the IP address to the string format PostgreSQL's inet type expects.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.