iputils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPIsIn

func IPIsIn(ip string, ipOrHosts []string) bool

IPIsIn checks if an ip is in a slice of ip/hosts, it will also check ip subnets

func IPsAreSubSet

func IPsAreSubSet(ipsA, ipsB []string) bool

IPsAreSubSet checks if all ips of ipsA are contained in ipsB, it will also check ip subnets

Types

This section is empty.

Jump to

Keyboard shortcuts

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