diff options
Diffstat (limited to 'flags.go')
| -rw-r--r-- | flags.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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() {} |
