update link of go package text/template

This commit is contained in:
朱正浩,Zhu Zhenghao 2023-04-04 23:18:24 +08:00
parent 29205f45ae
commit ba9d0faf80
2 changed files with 3 additions and 4 deletions

View File

@ -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
@ -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

View File

@ -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).