Automatic download of driver while instaling package

(ravuri sai ram akhil) #1

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.

Scan []byte from table
(Norbert Melzer) #2

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.