Help us shape the future of Go! Take the 2026 Go Developer Survey

netutil

package
v3.61.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorityAddr

func AuthorityAddr(scheme, authority string) (addr string)

AuthorityAddr returns a given authority (a host/IP, or host:port / ip:port) and returns a host:port. The port 443 is added if needed.

func AuthorityHostPort

func AuthorityHostPort(scheme, authority string) (host, port string)

func AuthorityKey

func AuthorityKey(u *url.URL) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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