ipa

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: GPL-3.0 Imports: 4 Imported by: 6

README

IPA

Internet Protocol Address

Methods to work with Internet Protocol Addresses.

At this moment this library supports only IP v4 addresses.
It will be updated to support IP v6 addresses in the future.

Documentation

Index

Constants

View Source
const (
	ErrIPAddressV4Syntax = "syntax error in IPv4 address"
	ErrOverflow          = "overflow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAddressV4

type IPAddressV4 uint32

IPAddressV4 is an Internet Protocol Version 4 Address.

func NewFromBytes

func NewFromBytes(ba, bb, bc, bd byte) IPAddressV4

func NewFromString

func NewFromString(str string) (addr IPAddressV4, err error)

func NewFromUintString

func NewFromUintString(uintStr string) (addr IPAddressV4, err error)

Jump to

Keyboard shortcuts

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