Having some issues and not finding the right way to add config files to my module. I have a lot of variables that change a lot when using my module and config files are the best way to do this.
I would like to know how best it is to employ a config file for this use case.
If they change when using your module, i.e. they are runtime parameters, then you probably don’t want to store them in the module itself. You should pass them as parameters to the module (and maybe also provide a function to load them from a config file as an option if that is convenient … but requiring users to edit a file every time they want to change a runtime parameter sacrifices a lot of flexibility).
Storing the parameters with your module itself (e.g. via Preferences.jl) is for things that are only set when you install the module, and which are then left mostly unchanged.