diff options
Diffstat (limited to 'docs-src')
| -rw-r--r-- | docs-src/content/functions/conv.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs-src/content/functions/conv.yml b/docs-src/content/functions/conv.yml index 09ef6105..10aa2fc3 100644 --- a/docs-src/content/functions/conv.yml +++ b/docs-src/content/functions/conv.yml @@ -147,6 +147,8 @@ funcs: alias: urlParse description: | Parses a string as a URL for later use. Equivalent to [url.Parse](https://golang.org/pkg/net/url/#Parse) + + Any of `url.URL`'s methods can be called on the result. arguments: - name: in required: true @@ -167,6 +169,12 @@ funcs: The host is example.com:443 The path is /foo/bar ``` + - | + _Call `Redacted` to hide the password in the output:_ + ``` + $ gomplate -i '{{ (conv.URL "https://user:supersecret@example.com").Redacted }}' + https://user:xxxxx@example.com + ``` - name: conv.ParseInt description: | _**Note:**_ See [`conv.ToInt64`](#conv-toint64) instead for a simpler and more flexible variant of this function. |
