package
Version:
v2.6.0+incompatible
Opens a new window with list of versions in this module.
Published: Aug 16, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Equal(a, b string) bool
Equal normalizes two URLs and then compares for equality.
func ExtractHostname(addr string) (string, error)
ExtractHostname returns hostname from URL
func URLJoin(baseURL string, paths ...string) (string, error)
URLJoin joins a base URL to one or more path components.
It's like filepath.Join for URLs. If the baseURL is pathish, this will still
perform a join.
If the URL is unparsable, this returns an error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.