type NullBool¶
NullBool 表示可能为 null 的 bool。NullBool 实现了 Scanner 接口,因此可以将其用作扫描目标,类似于 NullString。
结构如下:
type NullBool struct {
Bool bool
Valid bool // Valid is true if Bool is not NULL
}
NullBool 表示可能为 null 的 bool。NullBool 实现了 Scanner 接口,因此可以将其用作扫描目标,类似于 NullString。
结构如下:
type NullBool struct {
Bool bool
Valid bool // Valid is true if Bool is not NULL
}