package helper import "os" func FileExists(filename string) bool { _, err := os.Stat(filename) if os.IsNotExist(err) { return false } return true }