Updated CodeReviewComments (markdown)

Geolffrey Mena 2022-08-28 10:31:57 -06:00
parent fc25d72680
commit d2c1267c3d

@ -360,6 +360,9 @@ Do not define interfaces before they are used: without a realistic example
of usage, it is too difficult to see whether an interface is even necessary,
let alone what methods it ought to contain.
If you need to inject a dependency into private methods consider not using interfaces as there is no ambiguity in the methods over which you have control of what is received, don't add unnecessary abstractions. The exception is the case where an abstraction is actually required to "group objects into their common behaviors".
``` go
package consumer // consumer.go