func IsFileExists(filename string) bool {
	info, err := os.Stat(filename)
	if os.IsNotExist(err) {
		return false
	}
	return !info.IsDir()
}
IsFileExists checks if a file exists and is not a directory
package fileutils
import (
	"bytes"
	"fmt"
	"io"
	"io/ioutil"
	"net/http"
	"os"
	"path/filepath"
	"strings"
	"text/template"
	rice "github.com/GeertJohan/go.rice"
	"github.com/go-flutter-desktop/hover/internal/log"
)