mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
b9bd35d72e
git-subtree-dir: docs git-subtree-split: fdea5430f89dfd849d39212abdf5ace0a4763e5a
671 B
671 B
title | description | godocref | date | publishdate | lastmod | categories | menu | keywords | signature | workson | hugoversion | deprecated | aliases | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
urls.Parse | Parse parses a given url, which may be relative or absolute, into a URL structure. | https://godoc.org/net/url#URL | 2017-09-25 | 2017-09-25 | 2017-09-25 |
|
|
|
|
false |
urls.Parse
takes a url as input
{{ $url := urls.Parse "http://www.gohugo.io" }}
and returns a URL structure. The struct fields are accessed via the .
notation:
{{ $url.Scheme }} → "http"
{{ $url.Host }} → "www.gohugo.io"