func getUserHomeDir() (string, error) {
	usr, err := user.Current()
	if err != nil {
		return "", err
	}
	return usr.HomeDir, nil
}
getUserHomeDir get homedir from current user
package config
import (
	"io"
	"log"
	"os"
	"os/user"
	"path"
	"regexp"
	"strings"
	"unicode"
)
func matchStr(rgxp string, compare string) bool {
	r, err := regexp.Compile(rgxp)
	if err != nil {
		log.Fatalf("invalid regexp: %s", rgxp)
	}
	return r.MatchString(strings.ToLower(compare))
}
func getSSHConfigPath(homeDir string) (string, error) {
	fp := path.Join(homeDir, "/.ssh/config")
	if ok := fileExists(fp); !ok {
		newConfigFile, err := os.Create(fp)
		if err != nil {
			return "", err
		}
		defer newConfigFile.Close()
	}
	return fp, nil
}