mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 19:24:39 -04:00
Update Parse.md
This commit is contained in:
parent
842b20d2cc
commit
28a1b9dcec
@ -19,6 +19,7 @@ The `urls.Parse` function parses a URL into a [URL structure](https://godoc.org/
|
||||
{{ $url := "https://example.org:123/foo?a=6&b=7#bar" }}
|
||||
{{ $u := urls.Parse $url }}
|
||||
|
||||
{{ $u.String }} → https://example.org:123/foo?a=6&b=7#bar
|
||||
{{ $u.IsAbs }} → true
|
||||
{{ $u.Scheme }} → https
|
||||
{{ $u.Host }} → example.org:123
|
||||
|
Loading…
x
Reference in New Issue
Block a user