ipnet

package
v2.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 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(a, b net.Addr) bool

AddrEqual asserts that two net.Addrs are equal Currently only supprots UDP but will be extended in the future to support others

func AddrIPPort

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

AddrIPPort extracts the IP and Port from a net.Addr

Types

This section is empty.

Jump to

Keyboard shortcuts

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