NetworkingV1alpha3().VirtualServices(namespace).List(metav1.ListOptions{})
  if err != nil {
    log.Fatalf(&#34;Failed to get VirtualService in %s namespace: %s&#34;, namespace, err)
  }
  for i := range vsList.Items {
    vs := vsList.Items[i]
    log.Printf(&#34;Index: %d VirtualService Hosts: %+v\n&#34;, i, vs.Spec.GetHosts())
  }
}
</code></pre><p>You can find a more in-depth example <a href=https://github.com/istio/client-go/blob/release-1.19/cmd/example/client.go>here</a>.</p><h2 id=useful-tools-crea