gonaming-conventionsvariable-namesmixed-case

Capitalization after upper-case abbrevation in Go variable name


Should a struct field be named HTTPClient or HTTPclient?


Solution

  • You have HTTP and Client so HTTPClient, and, for lower case, httpClient.