code: func ExecCmdDirBytes(dir, cmdName string, args ...string) ([]byte, []byte, error) {
  	bufOut := new(bytes.Buffer)
  	bufErr := new(bytes.Buffer)
  
  	cmd := exec.Command(cmdName, args...)
  	cmd.Dir = dir
  	cmd.Stdout = bufOut
  	cmd.Stderr = bufErr
  
  	err := cmd.Run()
  	return bufOut.Bytes(), bufErr.Bytes(), err
  }
docs: // ExecCmdDirBytes executes system command in given directory
  // and return stdout, stderr in bytes type, along with possible error.