Package naming best practices

suggest change

It’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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents