I have created route rule using command line istioctl create -f file.yaml. I want to achieve same from custom GO code. Is there an Istio API to create route rules?
istioctl create -f file.yaml
https://github.com/istio/client-go is the one you are looking for.