package pathx import ( "os" ) func Exists(file string) bool { _, err := os.Stat(file) if os.IsNotExist(err) { return false } return true }