Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPrivateIP ¶
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.
Click to show internal directories.
Click to hide internal directories.