style(go): add rule against type-only packages (per upaas #126 review) #2
Atsaukties uz šo jaunā problēmā
Block a user
Dzēst atzaru ":add-no-type-only-packages-rule"
Atzara dzēšana ir neatgriezeniska. Kaut arī izdzēstais zars neilgu laiku var turpināt pastāvēt, pirms tas tiešām tiek noņemts, to vairumā gadījumu NEVAR atsaukt. Vai turpināt?
Adds a rule to CODE_STYLEGUIDE_GO.md: define types alongside their implementations, not in separate
types,domain, ormodelspackages.Type-only packages cause alias imports and indicate poor package design.
Prompted by sneak's review comment on upaas PR #126.
Added the Stringer rule: custom string-based types must implement
fmt.Stringer, and.String()should be used at SDK/library boundaries instead ofstring(v).