Go has a thing for that now- everything goes through a proxy (https://proxy.golang.org), and if you set GO_PROXY, you can send it through your proxy (Nexus et al).
If someone works around that on a developer machine, it shouldn't matter, because release builds should still come from an automated system, right?