sqltypes

package
v0.0.0-...-38a6bf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAddr

type IPAddr net.IP

IPAddr wraps net.IP to provide SQL driver support for PostgreSQL inet values.

func (IPAddr) Equal

func (ip IPAddr) Equal(other IPAddr) bool

Equal returns true if the two IPAddr values are equal.

func (IPAddr) IP

func (ip IPAddr) IP() net.IP

IP returns the underlying net.IP.

func (*IPAddr) Scan

func (ip *IPAddr) Scan(src interface{}) error

Scan implements sql.Scanner for IPAddr. It handles both string and []byte inputs from PostgreSQL.

func (IPAddr) String

func (ip IPAddr) String() string

String returns the IP address as a string.

func (IPAddr) Value

func (ip IPAddr) Value() (driver.Value, error)

Value implements driver.Valuer for IPAddr. It converts the IP address to the string format PostgreSQL's inet type expects.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL