validation

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPURL

func HTTPURL(name, value string) error

func TCPPort

func TCPPort(name string, port int) error

TCPPort validates that port is a valid TCP/UDP port number.

Note: the well-known port range (0-1023) being "reserved" only matters when *binding/listening* on a local port (often requires elevated privileges on Unix-like systems). For client connections, any valid port in 1-65535 is acceptable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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