func (d *dockerInstallerInCentOS) Available() (ok bool) {
	if runtime.GOOS == "linux" {
		_, err := exec.LookPath("yum")
		ok = err == nil
	}
	return
}
Available check if support current platform
package yum
import (
	"fmt"
	"github.com/linuxsuren/http-downloader/pkg/exec"
	"runtime"
	"strings"
	"time"
)
type dockerInstallerInCentOS struct {
	count int
}