Using GOClient to send request to K8S Workload


#1

Hi All,
Excuse me if my question sounds to basic.
Which go-client API should I invoke to send request to K8S-workloads(the corresponding pod/service).
I do find API’s that allow to modify/delete/create K8S resources however.
I could find this one way of doing it.
https://gist.github.com/yifan-gu/9e9cf3866ac5b283fdd12692e1576946
But is there a more standardized/better way of achieving the same?

To be more precise:
What is the go-client equivalent of:

kubectl proxy 
127.0.0.1:8001/api/v1/proxy/namespaces/default/services/<k8s-service>:8080/<api-query>