- Use lowercase dash-separated names for all files (to avoid git issues with case-insensitive file systems)
- Exceptions are files which have their own naming conventions (e.g. Dockerfile, Makefile, README)
- Automation scripts should be stored into
dotdirs
(eg .githooks, .openshiftci)
- All go code should be formatted by gofmt
- Import statement pkgs should be separated into 3 groups: stdlib, external dependency, current project.
- TESTS: Should follow the "test tables" convention.
- TESTS: Methods should follow the code style
Test_<FunctionName>
orTest_<GatherName>_<FunctionName>
- Comparing strings, its is recommended that you use
if string != ""
overif len(string) > 0
, but both are acceptable.