Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 265 | |
| 266 | // Format implements the NodeFormatter interface. |
| 267 | func (d *DBool) Format(ctx *FmtCtx) { |
| 268 | if ctx.HasFlags(fmtPgwireFormat) { |
| 269 | if bool(*d) { |
| 270 | ctx.WriteByte('t') |
| 271 | } else { |
| 272 | ctx.WriteByte('f') |
| 273 | } |
| 274 | return |
| 275 | } |
| 276 | ctx.WriteString(strconv.FormatBool(bool(*d))) |
| 277 | } |
| 278 | |
| 279 | // Size implements the Datum interface. |
| 280 | func (d *DBool) Size() uintptr { |
nothing calls this directly
no test coverage detected