-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading configs from different file systems #156
Comments
Afair it was done in https://github.com/cristalhq/aconfig/pull/126/files but not well documented. PRs are welcome. |
As far as I understand, we can use either the embed file system or the OS. But is it possible to use both at the same time? For example, I want to embed a configuration file into the binary, and when the application starts, read the configuration from both the embed and the OS file system |
Well, theoretically you can create a loader for fs or OS but that's a hack. Better would be add However, mixing fs and real OS under one field sounds hacky again. should it be |
not yet, thinking about it. what comes to mind breaks the LoaderFor function. it could accept several configs and merge them. but for now this idea doesn't seem optimal |
this idea has a place to be because for different file systems there can be different configs and different loaders. however, they have common parameters, for example, SkipFlags and others. it is not good that they will be duplicated in different configs |
How to load configs from OS file system and built-in file system at the same time?
The text was updated successfully, but these errors were encountered: