-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed as not planned
Labels
FrozenDueToAgeLanguageChangeSuggested changes to the Go languageSuggested changes to the Go languageProposalWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.error-handlingLanguage & library change proposals that are about error handling.Language & library change proposals that are about error handling.v2An incompatible library changeAn incompatible library change
Milestone
Description
Hi, if you like this idea please give a heart emoji to me, Thank you very much
func copy(src, dst string) (int64, error) {
r, err := os.Open("input.txt")
if err != nil {
return 0, err
}
defer r.Close()
w, err := os.Create("output.txt")
if err != nil {
return 0, err
}
defer w.Close()
if _, err = io.Copy(w, r); err != nil {
return 0, err
}
return 0, err
}Add keywords listen:
listen: err {
if err != nil {
return 0, err
}
return 0, nil
}()
func copy(src, dst string) (int64, error) {
listen:
r, err := os.Open("input.txt")
defer r.Close()
w, err := os.Create("output.txt")
defer w.Close()
_, err = io.Copy(w, r)
}xiaokentrl and NatureLRaimuz, septemhill, tmthrgd, vadyus, thediveo and 20 morexiaokentrlxiaokentrlxiaokentrl and tmthrgdxiaokentrlxiaokentrlxiaokentrl
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeLanguageChangeSuggested changes to the Go languageSuggested changes to the Go languageProposalWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.error-handlingLanguage & library change proposals that are about error handling.Language & library change proposals that are about error handling.v2An incompatible library changeAn incompatible library change