mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,11 +3,11 @@ title: urls.Parse
|
||||
description: Parses a URL into a URL structure.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related: []
|
||||
returnType: url.URL
|
||||
signatures: [urls.Parse URL]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: url.URL
|
||||
signatures: [urls.Parse URL]
|
||||
aliases: [/functions/urls.parse]
|
||||
---
|
||||
|
||||
@@ -26,6 +26,7 @@ The `urls.Parse` function parses a URL into a [URL structure](https://godoc.org/
|
||||
{{ $u.Hostname }} → example.org
|
||||
{{ $u.RequestURI }} → /foo?a=6&b=7
|
||||
{{ $u.Path }} → /foo
|
||||
{{ $u.RawQuery }} → a=6&b=7
|
||||
{{ $u.Query }} → map[a:[6] b:[7]]
|
||||
{{ $u.Query.a }} → [6]
|
||||
{{ $u.Query.Get "a" }} → 6
|
||||
|
Reference in New Issue
Block a user