IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 239 | |
| 240 | // IDsX is like IDs, but panics if an error occurs. |
| 241 | func (sq *ShareQuery) IDsX(ctx context.Context) []int { |
| 242 | ids, err := sq.IDs(ctx) |
| 243 | if err != nil { |
| 244 | panic(err) |
| 245 | } |
| 246 | return ids |
| 247 | } |
| 248 | |
| 249 | // Count returns the count of the given query. |
| 250 | func (sq *ShareQuery) Count(ctx context.Context) (int, error) { |