Skip to content
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

Support embedded directories #70

Open
ventsislav-georgiev opened this issue Nov 5, 2021 · 0 comments
Open

Support embedded directories #70

ventsislav-georgiev opened this issue Nov 5, 2021 · 0 comments
Assignees

Comments

@ventsislav-georgiev
Copy link

Describe the feature

There is a new feature in Golang 1.16 which allows embedding multiple files in the executable.
More info: https://blog.jetbrains.com/go/2021/06/09/how-to-use-go-embed-in-go-1-16

Will be great if configor has a LoadFromMemory method that allows passing embed.FS to it instead of a file path.

Motivation

The embedding of config files is useful when the executable cannot use absolute paths to refer to its config files and relative paths depend on the working directory which causes issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants