Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 413 Bytes

File metadata and controls

5 lines (3 loc) · 413 Bytes

AGENTS.md

Limit struct field visibility

When defining a struct, only make the fields public if there are reasons strongly justified. If the fields are only used within the module, keep them private. In most cases, you should try to create getter / setter methods instead of making public fields. This helps to encapsulate the implementation details and prevents unintended usage of the struct's internals.