Skip to content

Commit

Permalink
docs(chore): Uncomment 'released' tags for functions in v4.0.0 (#2125)
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <[email protected]>
  • Loading branch information
hairyhenderson authored Jun 22, 2024
1 parent 699a2ed commit e3b86e8
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion docs-src/content/functions/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ funcs:
Name=bar
svc:name=foobar
- name: aws.KMSEncrypt
# released: v4.0.0
released: v4.0.0
description: |
Encrypt an input string with the AWS Key Management Service (KMS).
Expand Down
10 changes: 5 additions & 5 deletions docs-src/content/functions/coll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ funcs:
Hello, Lisa
Hello, Maggie
- name: coll.GoSlice
# released: v4.0.0
released: v4.0.0
description: |
This exposes the `slice` function from Go's [`text/template`](https://golang.org/pkg/text/template/#hdr-Functions)
package. Note that using `slice` will use the `coll.Slice` function instead,
Expand Down Expand Up @@ -119,7 +119,7 @@ funcs:
{{ if (has $o "foo") }}{{ $o.foo }}{{ else }}THERE IS NO FOO{{ end }}'
THERE IS NO FOO
- name: coll.Index
# released: v4.0.0
released: v4.0.0
description: |
Returns the result of indexing the given map, slice, or array by the given
key or index. This is similar to the built-in `index` function, but the
Expand Down Expand Up @@ -172,7 +172,7 @@ funcs:
[Alice's Adventures in Wonderland Gulliver's Travels]
- name: coll.JQ
alias: jq
# released: v4.0.0
released: v4.0.0
description: |
Filters an input object or list using the [jq](https://stedolan.github.io/jq/) language, as implemented by [gojq](https://github.com/itchyny/gojq).
Expand Down Expand Up @@ -462,7 +462,7 @@ funcs:
{{ coll.Omit $keys $data }}'
map[bar:2]
- name: coll.Set
# released: v4.0.0
released: v4.0.0
alias: set
description: |
Sets the given key to the given value in the given map.
Expand All @@ -488,7 +488,7 @@ funcs:
$ gomplate -i '{{ dict "foo" 1 | coll.Set "bar" 2 }}'
map[bar:2 foo:1]
- name: coll.Unset
# released: v4.0.0
released: v4.0.0
alias: unset
description: |
Deletes the element with the specified key in the given map. If there is no such element, the map is returned unchanged.
Expand Down
6 changes: 3 additions & 3 deletions docs-src/content/functions/crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ funcs:
-----END PUBLIC KEY-----
- name: crypto.Ed25519GenerateKey
experimental: true
# released: v4.0.0
released: v4.0.0
description: |
Generate a new Ed25519 Private Key and output in
PEM-encoded PKCS#8 ASN.1 DER form.
Expand All @@ -171,7 +171,7 @@ funcs:
...
- name: crypto.Ed25519GenerateKeyFromSeed
experimental: true
# released: v4.0.0
released: v4.0.0
description: |
Generate a new Ed25519 Private Key from a random seed and output in
PEM-encoded PKCS#8 ASN.1 DER form.
Expand All @@ -190,7 +190,7 @@ funcs:
...
- name: crypto.Ed25519DerivePublicKey
experimental: true
# released: v4.0.0
released: v4.0.0
description: |
Derive a public key from an Ed25519 private key and output in PKIX
ASN.1 DER form.
Expand Down
6 changes: 3 additions & 3 deletions docs-src/content/functions/net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ funcs:
"v=spf1 -all"
]
- name: net.ParseAddr
# released: v4.0.0
released: v4.0.0
description: |
Parse the given string as an IP address (a
[`netip.Addr`](https://pkg.go.dev/net/netip#Addr)).
Expand Down Expand Up @@ -174,7 +174,7 @@ funcs:
{{ $ip.Prefix 12 }}'
93.176.0.0/12
- name: net.ParsePrefix
# released: v4.0.0
released: v4.0.0
description: |
Parse the given string as an IP address prefix (CIDR) representing an IP
network (a [`netip.Prefix`](https://pkg.go.dev/net/netip#Prefix)).
Expand Down Expand Up @@ -228,7 +228,7 @@ funcs:
93.176.0.0-93.191.255.255
- name: net.ParseRange
experimental: true
# released: v4.0.0
released: v4.0.0
description: |
Parse the given string as an inclusive range of IP addresses from the same
address family (a [`netipx.IPRange`](https://pkg.go.dev/go4.org/netipx#IPRange)
Expand Down
2 changes: 1 addition & 1 deletion docs-src/content/functions/strings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ funcs:
$ gomplate -i '{{ (coll.Slice "foo" "bar" "baz") | strings.Sort }}'
[bar baz foo]
- name: strings.SkipLines
# released: v4.0.0
released: v4.0.0
description: |
Skips the given number of lines (each ending in a `\n`), returning the
remainder.
Expand Down
4 changes: 2 additions & 2 deletions docs/content/functions/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ Name=bar
svc:name=foobar
```

## `aws.KMSEncrypt`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `aws.KMSEncrypt`

Encrypt an input string with the AWS Key Management Service (KMS).

Expand All @@ -200,6 +199,7 @@ for more details.

See also [`aws.KMSDecrypt`](#aws-kmsdecrypt).

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down
20 changes: 10 additions & 10 deletions docs/content/functions/coll.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ Hello, Lisa
Hello, Maggie
```

## `coll.GoSlice`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `coll.GoSlice`

This exposes the `slice` function from Go's [`text/template`](https://golang.org/pkg/text/template/#hdr-Functions)
package. Note that using `slice` will use the `coll.Slice` function instead,
Expand All @@ -110,6 +109,7 @@ is x[1:2:3]. The first argument must be a string, slice, or array.
See the [Go language spec](https://go.dev/ref/spec#Slice_expressions) for
more details.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down Expand Up @@ -169,8 +169,7 @@ $ gomplate -i '{{ $o := data.JSON (getenv "DATA") -}}
THERE IS NO FOO
```

## `coll.Index`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `coll.Index`

Returns the result of indexing the given map, slice, or array by the given
key or index. This is similar to the built-in `index` function, but the
Expand All @@ -180,6 +179,7 @@ non-existent map key.

Multiple indexes may be given, for nested indexing.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down Expand Up @@ -248,8 +248,7 @@ $ gomplate -i '{{ .books | jsonpath `$..works[?( @.edition_count > 400 )].title`
[Alice's Adventures in Wonderland Gulliver's Travels]
```

## `coll.JQ`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `coll.JQ`

**Alias:** `jq`

Expand All @@ -266,6 +265,7 @@ See also:
- [jq manual](https://stedolan.github.io/jq/manual/)
- [gojq differences to jq](https://github.com/itchyny/gojq#difference-to-jq)

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down Expand Up @@ -707,15 +707,15 @@ $ gomplate -i '{{ $data := dict "foo" 1 "bar" 2 "baz" 3 }}
map[bar:2]
```

## `coll.Set`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `coll.Set`

**Alias:** `set`

Sets the given key to the given value in the given map.

The map is modified in place, and the modified map is returned.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down Expand Up @@ -745,15 +745,15 @@ $ gomplate -i '{{ dict "foo" 1 | coll.Set "bar" 2 }}'
map[bar:2 foo:1]
```

## `coll.Unset`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `coll.Unset`

**Alias:** `unset`

Deletes the element with the specified key in the given map. If there is no such element, the map is returned unchanged.

The map is modified in place, and the modified map is returned.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down
12 changes: 6 additions & 6 deletions docs/content/functions/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ aztsmrD79OXXnhUlURI=
-----END PUBLIC KEY-----
```

## `crypto.Ed25519GenerateKey`_(unreleased)_ _(experimental)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `crypto.Ed25519GenerateKey` _(experimental)_
**Experimental:** This function is [_experimental_][experimental] and may be enabled with the [`--experimental`][experimental] flag.

[experimental]: ../config/#experimental

Generate a new Ed25519 Private Key and output in
PEM-encoded PKCS#8 ASN.1 DER form.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand All @@ -269,15 +269,15 @@ $ gomplate -i '{{ crypto.Ed25519GenerateKey }}'
...
```

## `crypto.Ed25519GenerateKeyFromSeed`_(unreleased)_ _(experimental)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `crypto.Ed25519GenerateKeyFromSeed` _(experimental)_
**Experimental:** This function is [_experimental_][experimental] and may be enabled with the [`--experimental`][experimental] flag.

[experimental]: ../config/#experimental

Generate a new Ed25519 Private Key from a random seed and output in
PEM-encoded PKCS#8 ASN.1 DER form.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand All @@ -302,15 +302,15 @@ $ gomplate -i '{{ crypto.Ed25519GenerateKeyFromSeed "base64" "MDAwMDAwMDAwMDAwMD
...
```

## `crypto.Ed25519DerivePublicKey`_(unreleased)_ _(experimental)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `crypto.Ed25519DerivePublicKey` _(experimental)_
**Experimental:** This function is [_experimental_][experimental] and may be enabled with the [`--experimental`][experimental] flag.

[experimental]: ../config/#experimental

Derive a public key from an Ed25519 private key and output in PKIX
ASN.1 DER form.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down
12 changes: 6 additions & 6 deletions docs/content/functions/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,15 @@ $ gomplate -i '{{net.LookupTXT "example.com" | data.ToJSONPretty " " }}'
]
```

## `net.ParseAddr`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `net.ParseAddr`

Parse the given string as an IP address (a
[`netip.Addr`](https://pkg.go.dev/net/netip#Addr)).

Any of `netip.Addr`'s methods may be called on the resulting value. See
[the docs](https://pkg.go.dev/net/netip#Addr) for details.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down Expand Up @@ -288,8 +288,7 @@ $ gomplate -i '{{ $ip := net.ParseIP (net.LookupIP "example.com") -}}
93.176.0.0/12
```

## `net.ParsePrefix`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `net.ParsePrefix`

Parse the given string as an IP address prefix (CIDR) representing an IP
network (a [`netip.Prefix`](https://pkg.go.dev/net/netip#Prefix)).
Expand All @@ -300,6 +299,7 @@ the CIDR notations defined in [RFC 4632][] and [RFC 4291][].
Any of `netip.Prefix`'s methods may be called on the resulting value. See
[the docs](https://pkg.go.dev/net/netip#Prefix) for details.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down Expand Up @@ -369,8 +369,7 @@ $ gomplate -i '{{ $net := net.ParseIPPrefix "93.184.0.0/12" -}}
93.176.0.0-93.191.255.255
```

## `net.ParseRange`_(unreleased)_ _(experimental)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `net.ParseRange` _(experimental)_
**Experimental:** This function is [_experimental_][experimental] and may be enabled with the [`--experimental`][experimental] flag.

[experimental]: ../config/#experimental
Expand All @@ -389,6 +388,7 @@ Note that this function is experimental for now, because it uses a
brought into the standard library in the future, which may require
breaking changes to this function.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down
4 changes: 2 additions & 2 deletions docs/content/functions/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ $ gomplate -i '{{ (coll.Slice "foo" "bar" "baz") | strings.Sort }}'
[bar baz foo]
```

## `strings.SkipLines`_(unreleased)_
**Unreleased:** _This function is in development, and not yet available in released builds of gomplate._
## `strings.SkipLines`

Skips the given number of lines (each ending in a `\n`), returning the
remainder.

If `skip` is greater than the number of lines in `in`, an empty string is
returned.

_Added in gomplate [v4.0.0](https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0)_
### Usage

```
Expand Down

0 comments on commit e3b86e8

Please sign in to comment.