Skip to content

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages