BoolX is like Bool, but panics if an error occurs.
(ctx context.Context)
| 519 | |
| 520 | // BoolX is like Bool, but panics if an error occurs. |
| 521 | func (s *selector) BoolX(ctx context.Context) bool { |
| 522 | v, err := s.Bool(ctx) |
| 523 | if err != nil { |
| 524 | panic(err) |
| 525 | } |
| 526 | return v |
| 527 | } |
| 528 | |
| 529 | // withHooks invokes the builder operation with the given hooks, if any. |
| 530 | func withHooks[V Value, M any, PM interface { |