netutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingPort = errors.New("missing port")

Functions

func TryJoinHostPort

func TryJoinHostPort(host, port string) (string, error)

TryJoinHostPort joins host and port. If port is empty, it returns host and an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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