func BoolToNumber[T T_Number](v bool) T { if v { return T(1) } return T(0) } ------------------------------------------ when run goformat commant, it will be changed to: func BoolToNumber(v bool) T { if v { return T(1) } return T(0) }
func BoolToNumber[T T_Number](v bool) T {
if v {
return T(1)
}
return T(0)
}
when run goformat commant, it will be changed to:
func BoolToNumber(v bool) T {
if v {
return T(1)
}
return T(0)
}