hostport

package module
v0.81.0-devel Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package hostport provides IPv6-aware host:port helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(host, port string) string

Join combines a host and port into the canonical "host:port" form, or "[host]:port" for IPv6 literals. Unlike net.JoinHostPort, it accepts an IPv6 host in either bare (`fd38::1`) or already-bracketed (`[fd38::1]`) form: net.JoinHostPort would otherwise double-bracket the latter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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