addr

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(authority, scheme string) (string, int)

Parse extracts host and port from an authority like "example.com", "example.com:8443", or "[::1]:8080". scheme selects the default port when the authority carries none ("https" -> 443, else 80). The returned host is lowercased.

Types

This section is empty.

Jump to

Keyboard shortcuts

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