introduce OnOff helper, for consistency in status output
This commit is contained in:
1 parent
1c14660ed5
commit
c10f1dacad
3 files changed
+12
-15
No files matched your search
@@ -0,0 +1,8 @@
|
||||
package common
|
||||
|
||||
func OnOff(b bool) string {
|
||||
if b {
|
||||
return "on"
|
||||
}
|
||||
return "off"
|
||||
}
|
||||
Reference in new issue
Block a user