CRDB Guide #45
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#45
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://wiki.crdb.io/wiki/spaces/CRDB/pages/181371303/Go+Golang+coding+guidelines
Don't panic.
strconv is faster than fmt.Sprintf.
Group related declarations (const, var, import, etc).
Reduce nesting.
Avoid unnecessary else statements.
Use fields names to initialize structs.
Use
:=
to declare variables, unless declaring the zero value.Minimize the scope of variables.
Use the most specific fmt verb for the value.
Use Raw String Literals to Avoid Escaping.