Idiomatic Go #41
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#41
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://dmitri.shuralyov.com/idiomatic-go
Use consistent spelling
Single spaces between sentences
Start error values with
Err
For brands or words with more than 1 capital letter, lowercase all letters
Comments for humans always have a single space after the slashes!!!!!
-- sub ref: https://golang.org/cmd/compile/#hdr-Compiler_Directives
Use defer if its overhead is relatively negligible, or it buys meaningful readability
Use singular form for collection repo/folder name
Avoid unused method receiver names
Use
s == ""
for the empty string check, notlen(s) == 0
Put sync.Mutex in top of a block of fields that the mutex protects.