Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 296 Bytes

errorf.md

File metadata and controls

11 lines (6 loc) · 296 Bytes

Pattern: Missing use of fmt.Errorf()

Issue: -

Description

It is possible to get a simpler program by replacing errors.New(fmt.Sprintf()) with fmt.Errorf(). This rule spots that kind of simplification opportunities.

Further Reading