Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
line-width
line-width
Line Width

Avoid very long lines but don't enforce a 80-column limit, not having a line limit enables simplifies the use of goimports and gorename. See line-length.

Anchor
linters
linters
Linters

...

Use of comments is encouraged, comments should be used to describe the intent of code when it is not obvious. See commentary.

Anchor
use-mocks
use-mocks
Using Mocks In Tests

Use of mocking when writing tests is encouraged, see here for a discussion of the use of mocking in go. GoMock is the recommended mocking framework.