// +build pi3 package main import ( "log" "os/exec" ) const audioCmd = "omxplayer" func initCommand() { // Making sure that omxplayer command is on the pi. path, err := exec.LookPath("omxplayer") if err != nil { log.Fatalf("fatal: didn't find 'omxplayer' executable\n") } log.Printf("debug: 'omxplayer' executable is in '%s'\n", path) }