package helpers func BoolToByte(b bool) byte { if b { return 1 } return 0 } func ByteToBool(b byte) bool { return b != 0 }