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.
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.
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://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.