func Exists(filePath string) bool {
	info, err := os.Stat(filePath)
	if os.IsNotExist(err) {
		return false
	}
	if info.IsDir() {
		return false
	}
	return true
}
Exists checks if a file exists on the file system
package filesystem
import (
	"io/ioutil"
	"os"
	"time"
)