iputil

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package for IP processing.

Index

Constants

View Source
const (
	LoopbackLocalHost = "localhost"
	Loopback127       = "127.0.0.1"
	LocalIpAny        = "0.0.0.0"
)

Variables

This section is empty.

Functions

func GetLocalIPV4

func GetLocalIPV4() string

Get local ipv4 address (excluding loopback address)

func IsLocalAddress

func IsLocalAddress(address string) bool

Check whether the address is local (localhost/127.0.0.1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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