The Go project has an official contribution guide.
Contribution Guide
https://go.dev/doc/contributeGood commit messages
Referencing issues
The special notation "Fixes #12345" associates the change with issue 12345 in the Go issue tracker. When this change is eventually applied, the issue tracker will automatically mark the issue as fixed.
If the change is a partial step towards the resolution of the issue, write "Updates #12345" instead. This will leave a comment in the issue linking back to the change in Gerrit, but it will not close the issue when the change is applied.