-
Notifications
You must be signed in to change notification settings - Fork 373
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
HasSection
function proposal
#271
Comments
@bryanpedini Thanks for the feedback! Any reason why the method signature is not |
Honestly dunno what I thought 2 weeks ago, was on a local shady proof of concept now deleted project that I can't currenlty remember anything about. 😅 Honestly, if it works great even without the |
Hello, sorry for the ping. |
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
HasSection(string) (boolean, error) {}
function, to be able to use "quick if statements" without needing to check if the section name is incfg.Sections()
.Describe alternatives you've considered
Check if section name is in the slice provided by
cfg.Sections()
.Additional context
None, I think.
The text was updated successfully, but these errors were encountered: