BoolsX is like Bools, but panics if an error occurs.
(ctx context.Context)
| 493 | |
| 494 | // BoolsX is like Bools, but panics if an error occurs. |
| 495 | func (s *selector) BoolsX(ctx context.Context) []bool { |
| 496 | v, err := s.Bools(ctx) |
| 497 | if err != nil { |
| 498 | panic(err) |
| 499 | } |
| 500 | return v |
| 501 | } |
| 502 | |
| 503 | // Bool returns a single bool from a selector. It is only allowed when selecting one field. |
| 504 | func (s *selector) Bool(ctx context.Context) (_ bool, err error) { |