introduce OnOff helper, for consistency in status output

This commit is contained in:
Matthias Radestock committed 2015-06-05 15:00:02 +01:00
1 parent 1c14660ed5
commit c10f1dacad
3 files changed
+12 -15

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package common
func OnOff(b bool) string {
if b {
return "on"
}
return "off"
}