package urlutil
import "helm.sh/helm/v3/internal/urlutil"
Index ¶
- func Equal(a, b string) bool
- func ExtractHostname(addr string) (string, error)
- func URLJoin(baseURL string, paths ...string) (string, error)
Functions ¶
func Equal ¶
Equal normalizes two URLs and then compares for equality.
func ExtractHostname ¶
ExtractHostname returns hostname from URL
func URLJoin ¶
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 ¶
urlutil.go
- Version
- v3.17.3 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 month ago –
Tools for package owners.