Documentation ¶ Index ¶ func Parse(authority, scheme string) (string, int) 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. Source Files ¶ View all Source files addr.go Click to show internal directories. Click to hide internal directories.