Skip to content

YuyaAbo/errwrapfmt

Repository files navigation

errwrapfmt

GitHub go.mod Go version Go Reference Go Report Card

errwrapfmt finds wrong error wrap format.

Using the wrong format makes the stack trace redundant. An example is https://go.dev/play/p/pPTUFmBvToa

": %w" // OK
":%w"  // NG
"%w"   // NG

Install

go install github.com/YuyaAbo/errwrapfmt/cmd/errwrapfmt@latest

Usage

errwrapfmt ./...

About

errwrapfmt finds wrong error wrap format in Go codes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages