[zh]: Add package main to client-go example

The package main is missing from the example.

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
This commit is contained in:
Douglas Schilling Landgraf 2020-09-08 20:58:16 -04:00
parent d3f537f2c6
commit ee17ef17a5
1 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,8 @@ Go 客户端可以使用与 kubectl 命令行工具相同的
[例子](https://git.k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go)
```golang
package main
import (
"fmt"
"k8s.io/client-go/1.4/kubernetes"