style(go): add rule against type-only packages (per upaas #126 review) #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "clawbot/prompts:add-no-type-only-packages-rule"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).