I want to check if dot
package is installed and is executable on current OS with Go.
My first idea was to check PATH variable for /dot
string? Are there any better ways to get executable/installed packages using Go?
Any advice will be helpful, thanks.
Do you mean a go package
? If so, try to use go list github.com/some/package