package naming convention
Best practice:
- In Go, package names should be short, concise, and descriptive.
- The convention is to use lowercase letters for package names, without underscores or mixedCase.
- The name should be a single word, or a series of words concatenated together, without using hyphens or dots.
- It is also recommended to avoid generic names like "util", "common", or "misc" for package names, as they don't provide much context or information about the package's purpose.
Some examples of well-named packages in Go include:
- "fmt" for formatting functions
- "net/http" for HTTP client and server functionality
- "encoding/json" for JSON encoding and decoding functions
- "io/ioutil" for file input/output functions
useful rescourse: