Method 'GetNamedArg' differs only by capitalization to method 'getNamedArg' in /home/runner/go/src/github.com/go-graphite/carbonapi/pkg/parser/internal.go
505 return e.GetIntOrInfArgDefault(n, d)
506}
507
508func (e *expr) GetNamedArg(name string) Expr {509 return e.getNamedArg(name)
510}
511
Description
Methods or fields of struct that have names different only by capitalization could be confusing.
Bad practice
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
buildSystem string
// name of the build system to use
BuildSystem string
}
Recommended
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
internalBuildSystem string
// name of the build system to use
BuildSystem string
}