-
Notifications
You must be signed in to change notification settings - Fork 381
Able to get child sections #95
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
Comments
How do you handle data returned from |
@unknwon section slice sounds good to me. usually we will iterate over them. |
Just to make things clear... I think this method should be called |
another api i suggest: |
What are you talking? |
both api are valueable for different situations. getChildSections is better in my situation of course. |
Added, usage: children := cfg.ChildSections(name) or children := sec.ChildSections() |
@unknwon thanks for your quick and nice work! its a really great feature i think. |
@unknwon when i replyed, i didn't notice your suggest |
Ah, good, closed as implemented. |
for example:
in this situation, we are not sure that how many child sections will appear, child section names dont even have a pattern.
so if we can do getSectionWildcard("node.*") or something like that, it will be very handy for this situation.
thanks for your great work!
The text was updated successfully, but these errors were encountered: