network

package
v1.1.6 Latest Latest
Warning

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

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

Documentation

Overview

Package network provides helpers for hostname extraction and loopback detection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hostname

func Hostname(ref string) string

Hostname extracts the hostname portion from a registry reference string.

func IsLoopback

func IsLoopback(host string) bool

IsLoopback reports whether host resolves to a loopback address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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