internal/util/file/exists.go (6 lines of code) (raw):

package file import "os" func Exists(filePath string) bool { _, err := os.Stat(filePath) return !os.IsNotExist(err) }