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, not len(s) == 0
Put sync.Mutex in top of a block of fields that the mutex protects.
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, not `len(s) == 0`
Put sync.Mutex in top of a block of fields that the mutex protects.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
https://dmitri.shuralyov.com/idiomatic-go
Use consistent spelling
Single spaces between sentences
Start error values with
ErrFor 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) == 0Put sync.Mutex in top of a block of fields that the mutex protects.