Method 'showNewForm' differs only by capitalization to method 'ShowNewForm' in the same source file
28 h.showNewForm(ctx, "", param.Prefix, param.Param.GetRouteParamStr(), false)
29}
30
31func (h *Handler) showNewForm(ctx *context.Context, alert template2.HTML, prefix, paramStr string, isNew bool) { 32
33 var (
34 user = auth.Auth(ctx)
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
}