go

module
v0.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0

README

IPFreely.uk

IP address manipulation library written in Go. This library treats IP addresses as generic unsigned integers capable of arithmetic and bitwise operations.

Packages

Add an import statement to go.mod to utilise.

Package Purpose
import github.com/ipfreely-uk/go/ip Core IP address types
import github.com/ipfreely-uk/go/ip/compare Generic comparison types and functions
import github.com/ipfreely-uk/go/ip/network IP address collection & iteration types
import github.com/ipfreely-uk/go/ip/network/cidr CIDR notation functions
import github.com/ipfreely-uk/go/ip/subnet CIDR subnet functions

Versus Standard Library

Selective comparison with standard library types in netip.

Feature IPFreely.uk netip
Immutable Types Y Y
Categorization Y
Generic Types Y
Arithmetic/Bitwise Ops Y
IPv6 Zones Y
CIDR Blocks Y Y
Arbitrary Ranges/Sets Y
Iteration Y

Continuous Integration

Go Go Reference

Directories

Path Synopsis
ip
IP addresses as generic, immutable positive integers.
IP addresses as generic, immutable positive integers.
compare
Compare ordered values
Compare ordered values
network
Network ranges and IP address sets.
Network ranges and IP address sets.
network/cidr
RFC-4632 Classless Inter-domain Routing notation handling https://www.rfc-editor.org/rfc/rfc4632
RFC-4632 Classless Inter-domain Routing notation handling https://www.rfc-editor.org/rfc/rfc4632
subnet
Functions for working with subnets
Functions for working with subnets

Jump to

Keyboard shortcuts

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