mirror of
https://github.com/samber/cc-skills-golang.git
synced 2026-09-19 15:36:26 +03:00
Add _test suffix (#15)
Signed-off-by: Александр Мелентьев <aleksandr4842@ya.ru>
This commit is contained in:
@@ -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` |
|
||||
|
||||
Reference in New Issue
Block a user