Skip to content

Contributing

This project follows standard Go conventions as outlined in Effective Go and the Go Code Review Comments.

  • Use MixedCaps or mixedCaps rather than underscores for multi-word names
  • Acronyms should be all capitals (e.g., URL, HTTP, API)
  • Interfaces with a single method should be named with the method name plus the -er suffix (e.g., Reader, Writer)
  • Package names should be short, concise, lowercase, and without underscores or mixedCaps
  • Organize imports into groups: standard library, third-party, local packages
  • Use make fmt to format all code before committing
  • Run make vet to catch common mistakes
  • Always check errors; don’t use _ to discard errors unless you have a good reason
  • Provide context when returning errors using fmt.Errorf with %w for wrapping
  • Use meaningful error messages that help debugging