package autostruct import ( "errors" "os" ) func FileExists(path string) bool { _, err := os.Stat(path) return !errors.Is(err, os.ErrNotExist) }