Files
weave/common/utils.go
T
2015-07-15 05:32:35 +01:00

16 lines
197 B
Go

package common
// Assert test is true, panic otherwise
func Assert(test bool) {
if !test {
panic("Assertion failure")
}
}
func OnOff(b bool) string {
if b {
return "on"
}
return "off"
}