also add Enable()

This commit is contained in:
Jeff Carr 2025-02-05 07:25:08 -06:00
parent f793a05288
commit c1c1b8a75e
1 changed files with 9 additions and 0 deletions

View File

@ -151,6 +151,15 @@ func (f *LogFlag) Disabled() bool {
return ! f.b
}
// just the opposite of Disabled()
// both are here just for code readability
func (f *LogFlag) Enabled() bool {
if !f.Ok() {
return false
}
return f.b
}
/*
func (f *LogFlag) Set(b bool) {
if ! f.Ok() {}