Package naming best practices
suggest changeIt’s best if the package name is the same as the last element of the import path.
If your GitHub account is kjk and you're writing package markdown, its import path should be github.com/kjk/markdown.
A common mistake is to put go in the import path, for example giving the package import path github.com/kjk/go-markdown. The last element should be a valid package name, and go-markdown contains a hyphen.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents