style(go): add rule against type-only packages (per upaas #126 review) #2
Yeni konuda referans
Bir kullanıcı engelle
":add-no-type-only-packages-rule" Dalını Sil
Bir dalı silmek kalıcıdır. Her ne kadar silinen dal tamamen kaldırılana kadar çok kısa bir süre yaşamını sürdürse de, çoğu durumda bu işlem GERİ ALINAMAZ. Devam edilsin mi?
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).