Source File
conv.go
Belonging Package
go101.org/nstd
package nstd
// Btoi converts a bool value to int (true -> 1, false -> 0).
//
// See: https://github.com/golang/go/issues/64825
func [ ~bool]( ) int {
if {
return 1
}
return 0
}
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |