#Is error wrapping efficient?

4 messages · Page 1 of 1 (latest)

limber flower
#

Hey folks, I was working on a project and felt my error handling was too cryptic, so I was hoping to use error wrapping (%w in fmt.Errorf) to give me the context and error chain that I need. But from what I understand it can be quite slow because of the string allocation made for fmt.Errorf? What are your thoughts on this? Do you know some better way? Please let me know, thanks in advance peeps

heady temple
haughty zealot