From d8deba7bca01afe687850cc062152d5cfaa0e229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?And=C5=BEej=20Maciusovi=C4=8D?= Date: Mon, 29 Aug 2022 11:10:28 +0300 Subject: [PATCH] Update README.md --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 26dfc87..602aba6 100644 --- a/README.md +++ b/README.md @@ -17,15 +17,14 @@ import ( "fmt" client "github.com/castai/k8s-client-go" ) - func main() { - kc, err := client.NewInCluster() - if err != nil { - log.Fatal(err) - } - ctx := context.Backgroud() + kc, err := client.NewInCluster() + if err != nil { + log.Fatal(err) + } + ctx := context.Backgroud() - endpointsAPI := client.NewObjectAPI[corev1.Endpoints](kc) + endpointsAPI := client.NewObjectAPI[corev1.Endpoints](kc) endpoints, err := endpointsAPI.Get(ctx, "kube-system", "kubelet", metav1.GetOptions{}) if err != nil {