Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 706 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 706 Bytes

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 ./...