IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 219 | |
| 220 | // IDsX is like IDs, but panics if an error occurs. |
| 221 | func (gcq *GitCommitQuery) IDsX(ctx context.Context) []uuid.UUID { |
| 222 | ids, err := gcq.IDs(ctx) |
| 223 | if err != nil { |
| 224 | panic(err) |
| 225 | } |
| 226 | return ids |
| 227 | } |
| 228 | |
| 229 | // Count returns the count of the given query. |
| 230 | func (gcq *GitCommitQuery) Count(ctx context.Context) (int, error) { |