netutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHTTPURL

func BuildHTTPURL(addr string, port int64) (string, error)

BuildHTTPURL parses a network address (CIDR or plain IP) and builds an HTTP URL with the given port. Handles both IPv4 and IPv6 addresses correctly (IPv6 addresses are wrapped in brackets).

func ParseNetworkAddress

func ParseNetworkAddress(addr string) (string, error)

ParseNetworkAddress parses CIDR notation or plain IP, returns IP string

Types

This section is empty.

Jump to

Keyboard shortcuts

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