honnef.co/go/tools@v0.4.7/staticcheck/testdata/src/example.com/CheckExec/CheckExec.go (about)

     1  package pkg
     2  
     3  import "os/exec"
     4  
     5  func fn() {
     6  	exec.Command("ls")
     7  	exec.Command("ls arg1") //@ diag(`first argument to exec`)
     8  	exec.Command(`C:\Program Files\this\is\insane.exe`)
     9  	exec.Command("/Library/Application Support/VMware Tools/vmware-tools-daemon")
    10  }