import ( "k8s.io/kubernetes/pkg/client/unversioned" "k8s.io/kubernetes/pkg/api" "fmt" ) func main() { // create a new Client object with a config object kubeConfig := &unversioned.Config{Host: "http://localhost:8001"} client, err := unversioned.New(kubeConfig) if err != nil { panic(err.Error()) } // create a new namespace newNamespace := &api.Namespace{ObjectMeta: api.ObjectMeta{Name: "test-namespace"}} namespace, err := client.Namespaces().Create(newNamespace) if err != nil { panic(err.Error()) } // print the name of the new namespace fmt.Printf("Created namespace: %s\n", namespace.ObjectMeta.Name) // delete the namespace err = client.Namespaces().Delete(namespace.ObjectMeta.Name, &api.DeleteOptions{}) if err != nil { panic(err.Error()) } fmt.Printf("Deleted namespace: %s\n", namespace.ObjectMeta.Name) }In this example, we create a new `Client` object and use it to create a new namespace. We print the name of the new namespace, and then delete it. The `Client` object is created with a `KubeConfig` object that tells it where to find the Kubernetes API server. This code uses the `unversioned` package which means it will use the latest stable API version. Overall, the `Client` package provides a simple and intuitive way to interact with the Kubernetes API server in a Go application.