Coding Conventions

cert-manager, like most Go projects, delegates almost all stylistic choices to gofmt, with goimports on top for organizing imports. Broadly speaking, if you set your editor to run goimports when you save a file, your code will be stylistically correct.

cert-manager generally also follows the Kubernetes coding conventions and the Google Go code review comments.

Organizing Imports

Imports should be organized into 3 blocks, with each block separated by two newlines:

import (



An example might be the following, taken from pkg/acme/accounts/client.go:

import (

	acmeapi ""

	acmecl ""
	acmeutil ""
	cmacme ""

Once this manual split of standard library, external and internal imports has been made, it will be enforced automatically by goimports when executed in the future.

UK vs. US spelling

For the sake of consistency, cert-manager uses en-US spelling for the documentation in as well as within the cert-manager codebase. A comprehensive list of en-GB → en-US word substitution is available on Ubuntu’s WordSubstitution page.