Why go-staticcheck reports “unused method” when implementing interface
I have written a fairly simple code. It simply “implements” the factory interface in a stateless way. It works as expected, however I got a warning from Golang linter that both make()
and update()
methods are unused, which is clearly not true.