I'm using client-go for Kubernetes and trying to get the API url of the current cluster, i.e. something similar to the output of `kubectl cluster-info`.
I [found](https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/client_config.go) a function called `getCluster`:

```
func (config *DirectClientConfig) ClientConfig() (*restclient.Config, error) {
    // check that getAuthInfo, getContext, and getCluster do not return an error.
    // Do this before checking if the current config is usable in the event that an
    // AuthInfo, Context, or Cluster config with user-defined names are not found.
    // This provides a user with the immediate cause for error if one is found
    configAuthInfo, err := config.getAuthInfo()
    if err != nil {
        return nil, err
    }

    _, err = config.getContext()
    if err != nil {
        return nil, err
    }

    configClusterInfo, err := config.getCluster()
    if err != nil {
        return nil, err
    }

    ...
}

```

When I write the following in my code

```
config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
clusterInfo, err := config.getCluster()

```

I get the error `config.getCluster undefined (type *rest.Config has no field or method getCluster)`

How can I use this function? Is there any other way to get the this url?