Interface no I prefix (ARCH5003)
Key go.naming.interface-no-i-prefix · Severity info · Category naming
Go interfaces should not be prefixed with I; that C#/Java habit is not idiomatic in Go. Interfaces are usually named after their behavior with an -er suffix.
Incorrect
Section titled “Incorrect”type IReader interface { Read(p []byte) (int, error)}Correct
Section titled “Correct”type Reader interface { Read(p []byte) (int, error)}Drop the I prefix and use a behavior-oriented name such as Reader.