netutil

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAny

func ContainsAny(cidr string, ips ...string) (bool, error)

func GatewayMAC

func GatewayMAC() (string, error)

func In

func In(ip, cidr string) (bool, error)

func InAny

func InAny(ip string, cidrs ...string) (bool, error)

func List

func List(opts ListOptions) ([]string, error)

Types

type ListOptions

type ListOptions struct {
	Loopback bool
	NoIPv4   bool
	NoIPv6   bool
}

Jump to

Keyboard shortcuts

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