Automatic download of driver while instaling package

when we run go get command , package is download and installed. i want to control that go get command that it internally downloads some other file. I have code to download the file but how to make the golang to run that code when we run go get.

Thanks in Advance.

I assume that your post in another thread is related to this, therefore:

No thats not possible. And to be honest, this is good! Given the current way of how go get works without modules, injecting malicious code is easy enough, but allow to download arbitrary stuff sounds even worse…

Just tell the users of your wrapper, that you depend on the CLI beeing installed.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.