You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in cfg.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:
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. 😅
It was probably about, if cfg.Sections() is empty, or if it throws an error itself down the line of function recursiveness, or something like that.
Honestly, if it works great even without the error, it's even better 'cause well, it doesn't throw errors...
If you're thinking of an implementation, please feel free to do it whatever way you like the most!
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: