Go

Go

Made by DeepSource

Name of an un-exportable symbol starts with a capital letter GO-R3005

Anti-pattern
Major

Names of un-exportable symbols such as function parameters should not start with a capital letter.

Bad practice

package main

func foo(A int) int {
  B := A + 1
  return B
}

Recommended

package main

func foo(a int) int {
  b := a + 1
  return b
}