Method 'GetVolume' differs only by capitalization to method 'getVolume' in the same source file
351 }
352}
353
354func (vs *VolumeServer) GetVolume(w http.ResponseWriter, req *http.Request) {355 vs.getVolume(w, req, false)
356}
357
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
}