network

package
v1.2.18 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrivateIP

func IsPrivateIP(ip string) (isPrivate bool)

IsPrivateIP determines whether a given IP address is a private IP address. It parses the IP address from a string and checks it against a list of predefined private IP blocks.

Parameters:

ip (string): The IP address in string format to be checked.

Returns:

isPrivate (bool): Returns true if the IP address is a private IP address,
                  false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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