Method receiver 'admin' is not referenced in method's body, consider removing or renaming it as _
68 return config.GetFullIndexURL()
69}
70
71func (admin *Admin) GetInfo() plugins.Info { 72 return plugins.Info{
73 Title: "Basic Admin",
74 Website: "https://www.go-admin.cn",
Method receiver 'admin' is not referenced in method's body, consider removing or renaming it as _
80 }
81}
82
83func (admin *Admin) IsInstalled() bool { 84 return true
85}
86
Method receiver 'admin' is not referenced in method's body, consider removing or renaming it as _
64 action.InitOperationHandlerSetter(admin.GetAddOperationFn())
65}
66
67func (admin *Admin) GetIndexURL() string { 68 return config.GetFullIndexURL()
69}
70
Method receiver 's' is not referenced in method's body, consider removing or renaming it as _
32 }
33}
34
35func (s *Service) UpdateButtons() {36
37}
38
Method receiver 's' is not referenced in method's body, consider removing or renaming it as _
84 conn db.Connection
85}
86
87func (s *TokenService) Name() string { 88 return TokenServiceKey
89}
90
Description
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
Bad practice
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
Recommended
func (*Unix) Name() string {
return "unix"
}