package main import ( "fmt" "github.com/openshift/origin/pkg/cmd/util/clientcmd" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func main() { // Create a new client config to connect to the OpenShift API server cfg, err := clientcmd.BuildConfigFromFlags("", "/path/to/kubeconfig") if err != nil { panic(err) } // Create a new namespace client nsClient, err := client.New(cfg, client.Options{}) if err != nil { panic(err) } // Get a list of all namespaces nsList, err := nsClient.CoreV1().Namespaces().List(metav1.ListOptions{}) if err != nil { panic(err) } // Print each namespace's name and creation timestamp for _, ns := range nsList.Items { fmt.Printf("Namespace: %s, Created: %v\n", ns.Name, ns.CreationTimestamp) } }In this example, we use the CLI Namespace tool to list all namespaces in an OpenShift cluster. We use the client config to connect to the API server, then create a new namespace client. We get a list of all namespaces using `nsClient.CoreV1().Namespaces().List()` and then loop through each namespace, printing out its name and creation timestamp. Overall, the `github.com.openshift.origin.test.extended.util` package library provides useful tools for developers working with OpenShift Origin and Kubernetes.