How to "require" your own private modules in go.mod
Using the replace directive, you can develop a Diarkis server with private modules.
Place your private module in your Diarkis server project directory.
Here is an example of a directory structure to add your private module to the directory extracted by diarkis-server-template.
Referencing your private module in go.mod
Add a reference to the module to go.mod in your Diarkis server project.
What is "replace" directive
This is a directive that replaces the content (reference) of the module specified by import.
See also : https://go.dev/ref/mod#go-mod-file-replace
Last updated