go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.37k stars 2.13k forks source link

*: replace fmt.Errorf with errors.New #3752

Closed alexandear closed 1 week ago

alexandear commented 2 weeks ago

This PR replaces usages of fmt.Errorf with errors.New for creating errors. Not sure, if we gain a performance improvement. But definitely, errors.New is more idiomatic for creating simple errors without additional values.