Skip to content

Module import support#5

Open
Kolterdyx wants to merge 1 commit intosublee:mainfrom
EliumDigitalData:import-modules
Open

Module import support#5
Kolterdyx wants to merge 1 commit intosublee:mainfrom
EliumDigitalData:import-modules

Conversation

@Kolterdyx
Copy link
Copy Markdown

This PR implements the feature requested in #4, allowing module reuse. It adds a new ImportModule function that takes in a single module, and returns a moduleOption, that recursively traverses module dependencies and includes their configurations in the importing module. There is some circular dependency detection just in case, but I haven't been able to create a scenario where a cyclic dependency exists and the go compiler doesn't complain first.

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

Successfully merging this pull request may close these issues.

1 participant