diff options
| author | Jeff Carr <[email protected]> | 2024-10-12 16:32:08 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-12 16:32:08 -0500 |
| commit | 366bcac15c3db2240b04c000bc0892452cce1bce (patch) | |
| tree | e3d43d539a19dd92d81524865631a2eff91a557a /reallog.go | |
| parent | 2cf02ee2e5f155205b847805b1bdccb42fcfec00 (diff) | |
fix go vet warnings
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'reallog.go')
| -rw-r--r-- | reallog.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -8,12 +8,18 @@ import ( reallog "log" ) -var daemonMode bool = false - func DaemonMode(b bool) { daemonMode = b } +func DaemonShow() { + if daemonMode { + fmt.Println("daemonMode=true") + } else { + fmt.Println("daemonMode=false") + } +} + func realPrintln(a ...any) { if daemonMode { fmt.Println(a...) |
