iputil

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 2 Imported by: 0

README

IP Address utils

Tests

go get github.com/verify-lab/iputil

IP util example


ip := net.ParseIP("99.250.150.130")

fmt.Println(IsIPv6(ip))
fmt.Println(IsPrivateIP(ip))

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIPv6

func IsIPv6(ip net.IP) bool

func IsPrivateIP

func IsPrivateIP(ip net.IP) bool

IsPrivateIP test is IP local (private)

func IsStringIPv6

func IsStringIPv6(ip string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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