stash-box/pkg/utils/boolean.go
WithoutPants 0f29cf0c84 Initial performer prototype (#1)
* Initial performer prototype

* Drop file: from migration url to fix panic

* Remove vendor requirement
2019-11-18 21:13:05 +11:00

10 lines
142 B
Go

package utils
// Btoi transforms a boolean to an int. 1 for true, false otherwise
func Btoi(b bool) int {
if b {
return 1
}
return 0
}