fatih

errwrap

Go tool to wrap and fix errors with the new %w verb directive

by fatih

Go

Go100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 1y ago
See all on GitHub →
reillywatson

Go 1.20 introduced the ability to wrap multiple errors inside a single error. This linter would incorrectly flag those.

reillywatson · 2mo ago
atc0005

Overview Hi @fatih, Thank you for providing this linter. It has already helped catch several cases where I did not use the error-wrapping directive in my projects. It did however flag one case that may be a false-positive. I have a project that is still using Go 1.19 and the linter identifies what it believes to be a missing use of , but I already have one such usage in place. I understand that this syntax would be valid in Go 1.20, but since the project README indicates that the linter supports Go 1.16 and newer I'm reporting this as a potential problem. Short version (before following linter advice): Linter output: Reproducible example Code after following linter advice: code example Results If I follow the linter's advice, this is what I get when running the code: Linter version details

atc0005 · 1y ago
tendervittles

Hello, My CI is getting failures on errwrap when I switched from go1.23 to go1.24. The problems went away when I updated this project's dependencies.

tendervittles · 1y ago
tendervittles

Updated dependencies fixes https://github.com/fatih/errwrap/issues/24. I was seeing bizarre internal errors.

tendervittles · 1y ago
Structured data for AI agents

Repository: fatih/errwrap. Description: Go tool to wrap and fix errors with the new %w verb directive Stars: 381, Forks: 16. Primary language: Go. Languages: Go (100%). Homepage: https://arslan.io Topics: analyzer, errwrap, go, golang, tools. Latest release: v1.7.0 (1y ago). Open PRs: 1, open issues: 1. Last activity: 1y ago. Community health: 42%. Top contributors: fatih, dnwe, tariq1890, atc0005, asfaltboy, reillywatson, ferhatelmas.