install it with go get.
But I need to know if something is installed in the system before actually installing the go package.
Is there a way to run a small shell script or a command when the user installs the package with go get?
a script solves, check this script, take it as an example, maybe it will help you $ sh -c "$(wget https://raw.githubusercontent.com/jeffotoni/s3godo/master/spaces/copyspace/v1/install.sh -O -)" https://github.com/jeffotoni/copyspace
do yours upon this idea.
I've seen some packages simply writing in their readme on the repos "this package depends on x". For example "this package depends on gtk4"
Обсуждают сегодня