ipnet

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ipnet contains helper functions around net and IP

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrEqual

func AddrEqual(addrA, addrB net.Addr) bool

AddrEqual asserts that two net.Addrs are equal. Compares IP and Port and intentionally ignores IPv6 Zone.

func AddrIPPort

func AddrIPPort(a net.Addr) (net.IP, int, error)

AddrIPPort extracts the IP and Port from a net.Addr.

func FingerprintAddr

func FingerprintAddr(addr net.Addr) string

FingerprintAddr generates a fingerprint from net.UDPAddr or net.TCPAddr's which can be used for indexing maps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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