There are several rules when it comes to naming conventions for Go modules.

  • When the code you write needs to be public (package), you should use the URL of a repo where the package is going to be.
    Example: github.com/oskar-dragon/<package_name>
  • If you package is internal (should not be exposed outside of your module), then you can use