// ToInt8 attempts to cast the Boolean to a Int8.
// The result is not checked for an overflow.
// Use the ToInt8Checked version of this method if you need to check for
// an overflow.
ToInt8 attempts to cast the Boolean to a Int8.
The result is not checked for an overflow.
Use the ToInt8Checked version of this method if you need to check for
an overflow.
// ToInt8 attempts to cast the Boolean to a Int8 . // The result is not checked for an overflow . // Use the ToInt8Checked version of this method if you need to check for // an overflow .
func (t Boolean) ToInt8() Int8 {
	if t {
		return Int8(1)
	}
	return Int8(0)
}
func ( t Boolean ) ToInt8 ( ) Int8 { if t { return Int8 ( 1 ) } return Int8 ( 0 ) }
ToInt8 attempts to cast the Boolean to a Int8.
ToInt8 attempts to cast the Boolean to a Int8 .