diff options
Diffstat (limited to 'docs-src/content/functions/conv.yml')
| -rw-r--r-- | docs-src/content/functions/conv.yml | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/docs-src/content/functions/conv.yml b/docs-src/content/functions/conv.yml index 237af8e5..31fca92f 100644 --- a/docs-src/content/functions/conv.yml +++ b/docs-src/content/functions/conv.yml @@ -8,7 +8,7 @@ funcs: alias: bool released: v0.2.0 description: | - **Note:** See also [`conv.ToBool`](#conv-tobool) for a more flexible variant. + **Note:** See also [`conv.ToBool`](#convtobool) for a more flexible variant. Converts a true-ish string to a boolean. Can be used to simplify conditional statements based on environment variables or other text input. pipeline: true @@ -38,7 +38,7 @@ funcs: Note that this will not provide a default for the case where the input is undefined (i.e. referencing things like `.foo` where there is no `foo` field of `.`), but - [`conv.Has`](#conv-has) can be used for that. + [`coll.Has`](../coll/#collhas) can be used for that. pipeline: true arguments: - name: default @@ -52,7 +52,7 @@ funcs: $ gomplate -i '{{ "" | default "foo" }} {{ "bar" | default "baz" }}' foo bar - name: conv.Dict - deprecated: Renamed to [`coll.Dict`](#coll-dict) + deprecated: Renamed to [`coll.Dict`](../coll/#colldict) alias: dict released: v3.0.0 description: | @@ -64,11 +64,11 @@ funcs: All keys are converted to strings. This function is equivalent to [Sprig's `dict`](http://masterminds.github.io/sprig/dicts.html#dict) - function, as used in [Helm templates](https://docs.helm.sh/chart_template_guide#template-functions-and-pipelines). + function, as used in [Helm templates](https://helm.sh/docs/chart_template_guide/functions_and_pipelines/). - For creating more complex maps, see [`data.JSON`](../data/#data-json) or [`data.YAML`](../data/#data-yaml). + For creating more complex maps, see [`data.JSON`](../data/#datajson) or [`data.YAML`](../data/#datayaml). - For creating arrays, see [`coll.Slice`](#coll-slice). + For creating arrays, see [`coll.Slice`](../coll/#collslice-_deprecated_). arguments: - name: in... required: true @@ -89,7 +89,7 @@ funcs: Hello world! Hello everybody! - name: conv.Slice - deprecated: Renamed to [`coll.Slice`](#coll-slice) + deprecated: Renamed to [`coll.Slice`](../coll/#collslice-_deprecated_) alias: slice released: v0.3.0 description: | @@ -106,7 +106,7 @@ funcs: Hello, Lisa Hello, Maggie - name: conv.Has - deprecated: Renamed to [`coll.Has`](#coll-has) + deprecated: Renamed to [`coll.Has`](../coll/#collhas) alias: has released: v1.5.0 description: | @@ -153,7 +153,7 @@ funcs: alias: urlParse released: v2.0.0 description: | - Parses a string as a URL for later use. Equivalent to [url.Parse](https://golang.org/pkg/net/url/#Parse) + Parses a string as a URL for later use. Equivalent to [url.Parse](https://pkg.go.dev/net/url/#Parse) Any of `url.URL`'s methods can be called on the result. arguments: @@ -185,9 +185,9 @@ funcs: - name: conv.ParseInt released: v1.4.0 description: | - _**Note:**_ See [`conv.ToInt64`](#conv-toint64) instead for a simpler and more flexible variant of this function. + _**Note:**_ See [`conv.ToInt64`](#convtoint64) instead for a simpler and more flexible variant of this function. - Parses a string as an int64. Equivalent to [strconv.ParseInt](https://golang.org/pkg/strconv/#ParseInt) + Parses a string as an int64. Equivalent to [strconv.ParseInt](https://pkg.go.dev/strconv/#ParseInt) rawExamples: - | _`input.tmpl`:_ @@ -204,9 +204,9 @@ funcs: - name: conv.ParseFloat released: v1.4.0 description: | - _**Note:**_ See [`conv.ToFloat`](#conv-tofloat) instead for a simpler and more flexible variant of this function. + _**Note:**_ See [`conv.ToFloat64`](#convtofloat64) instead for a simpler and more flexible variant of this function. - Parses a string as an float64 for later use. Equivalent to [strconv.ParseFloat](https://golang.org/pkg/strconv/#ParseFloat) + Parses a string as an float64 for later use. Equivalent to [strconv.ParseFloat](https://pkg.go.dev/strconv/#ParseFloat) rawExamples: - | _`input.tmpl`:_ @@ -224,7 +224,7 @@ funcs: - name: conv.ParseUint released: v1.4.0 description: | - Parses a string as an uint64 for later use. Equivalent to [strconv.ParseUint](https://golang.org/pkg/strconv/#ParseUint) + Parses a string as an uint64 for later use. Equivalent to [strconv.ParseUint](https://pkg.go.dev/strconv/#ParseUint) rawExamples: - | _`input.tmpl`:_ @@ -241,9 +241,9 @@ funcs: - name: conv.Atoi released: v1.4.0 description: | - _**Note:**_ See [`conv.ToInt`](#conv-toint) and [`conv.ToInt64`](#conv-toint64) instead for simpler and more flexible variants of this function. + _**Note:**_ See [`conv.ToInt`](#convtoint) and [`conv.ToInt64`](#convtoint64) instead for simpler and more flexible variants of this function. - Parses a string as an int for later use. Equivalent to [strconv.Atoi](https://golang.org/pkg/strconv/#Atoi) + Parses a string as an int for later use. Equivalent to [strconv.Atoi](https://pkg.go.dev/strconv/#Atoi) rawExamples: - | _`input.tmpl`:_ @@ -324,7 +324,7 @@ funcs: released: v2.2.0 description: | Converts the input to an `int` (signed integer, 32- or 64-bit depending - on platform). This is similar to [`conv.ToInt64`](#conv-toint64) on 64-bit + on platform). This is similar to [`conv.ToInt64`](#convtoint64) on 64-bit platforms, but is useful when input to another function must be provided as an `int`. @@ -335,7 +335,7 @@ funcs: [CWE-190](https://cwe.mitre.org/data/definitions/190.html) and [CWE-681](https://cwe.mitre.org/data/definitions/681.html). - See also [`conv.ToInt64`](#conv-toint64). + See also [`conv.ToInt64`](#convtoint64). arguments: - name: in required: true @@ -357,7 +357,7 @@ funcs: Unconvertable inputs will result in errors. - This delegates to [`conv.ToInt64`](#conv-toint64) for each input argument. + This delegates to [`conv.ToInt64`](#convtoint64) for each input argument. arguments: - name: in... required: true @@ -373,7 +373,7 @@ funcs: Unconvertable inputs will result in errors. - This delegates to [`conv.ToInt`](#conv-toint) for each input argument. + This delegates to [`conv.ToInt`](#convtoint) for each input argument. arguments: - name: in... required: true @@ -409,7 +409,7 @@ funcs: Unconvertable inputs will result in errors. - This delegates to [`conv.ToFloat64`](#conv-tofloat64) for each input argument. + This delegates to [`conv.ToFloat64`](#convtofloat64) for each input argument. arguments: - name: in... required: true @@ -441,7 +441,7 @@ funcs: description: | Converts the inputs (of any type) to an array of `string`s - This delegates to [`conv.ToString`](#conv-tostring) for each input argument. + This delegates to [`conv.ToString`](#convtostring) for each input argument. arguments: - name: in... required: true |
