Error importing istio modules in my project

I want to develop some custom webhooks and require some functions already written in the Pilot module. I added v0.0.0 to my go.mod but it always ends up with go: error loading module requirements when compiling
How do I import pilot module in my project? And is it possible to version it to a particular istio version like 1.2.0?