Documentation ¶ Index ¶ type Bool func (b Bool) Value() (driver.Value, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Bool ¶ type Bool bool Bool wraps the built-in bool type and implements driver.Valuer. It converts boolean values to database-compatible integers (1 for true, 0 for false), useful for databases without native boolean support. func (Bool) Value ¶ func (b Bool) Value() (driver.Value, error) Value implements driver.Valuer, converting true to 1 and false to 0. Source Files ¶ View all Source files bool.go Click to show internal directories. Click to hide internal directories.