Add _test suffix (#15)

Signed-off-by: Александр Мелентьев <aleksandr4842@ya.ru>
This commit is contained in:
Александр Мелентьев
2026-04-08 18:26:40 +02:00
committed by GitHub
parent 49eb968ccb
commit 9dfc70fb8c
+1 -1
View File
@@ -33,7 +33,7 @@ To ignore a rule, just add a comment to the code.
| Element | Convention | Example |
| --- | --- | --- |
| Package | lowercase, single word | `json`, `http`, `tabwriter` |
| Package | lowercase, single word, _test suffix OK for test files | `json`, `http`, `tabwriter`, `http_test` |
| File | lowercase, underscores OK | `user_handler.go` |
| Exported name | UpperCamelCase | `ReadAll`, `HTTPClient` |
| Unexported | lowerCamelCase | `parseToken`, `userCount` |