Bahlo's Style Guide #44
Labels
No Label
Dev Ready
Issue Not Ready
Tech Debt
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: simplesystems/go-resources#44
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
https://github.com/bahlo/go-styleguide
Add context to errors. After reading the logs, this will significantly cut down debugging time.
Use structured logging.
Avoid package-level variables. If you do use one, put it at the top of the file.
Keep the happy path left.
Avoid mocks.
Avoid side-effects and favor pure funcs.
Avoid naked returns. Use named return variables for documentation only.
Put main as the first func.
Avoid generic package names such as "helper" and "util".
Avoid using the keyword "new".