Skip to content

Commit

Permalink
update link of go package text/template
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhuzhenghao committed Apr 4, 2023
1 parent 29205f4 commit ba9d0fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ kubectl get pods --namespace kube-system -o jsonpath="{.items[*].spec.containers

## List Container images using a go-template instead of jsonpath

As an alternative to jsonpath, Kubectl supports using [go-templates](https://golang.org/pkg/text/template/)
As an alternative to jsonpath, Kubectl supports using [go-templates](https://pkg.go.dev/text/template)
for formatting the output:

```shell
Expand All @@ -93,5 +93,4 @@ kubectl get pods --all-namespaces -o go-template --template="{{range .items}}{{r
### Reference

* [Jsonpath](/docs/reference/kubectl/jsonpath/) reference guide
* [Go template](https://golang.org/pkg/text/template/) reference guide

* [Go template](https://pkg.go.dev/text/template) reference guide
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ is empty and the container exited with an error. The log output is limited to
* See the `terminationMessagePath` field in
[Container](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#container-v1-core).
* Learn about [retrieving logs](/docs/concepts/cluster-administration/logging/).
* Learn about [Go templates](https://golang.org/pkg/text/template/).
* Learn about [Go templates](https://pkg.go.dev/text/template).

0 comments on commit ba9d0fa

Please sign in to comment.