Method 'produceSyncCommitteeContribution' differs only by capitalization to method 'ProduceSyncCommitteeContribution' in the same source file
470}
471
472// ProduceSyncCommitteeContribution requests that the beacon node produce a sync committee contribution.
473func (s *Server) produceSyncCommitteeContribution( 474 ctx context.Context,
475 w http.ResponseWriter,
476 slot primitives.Slot,
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
}