OnlyIDX is like OnlyID, but panics if an error occurs.
(ctx context.Context)
| 179 | |
| 180 | // OnlyIDX is like OnlyID, but panics if an error occurs. |
| 181 | func (gcq *GitCommitQuery) OnlyIDX(ctx context.Context) uuid.UUID { |
| 182 | id, err := gcq.OnlyID(ctx) |
| 183 | if err != nil { |
| 184 | panic(err) |
| 185 | } |
| 186 | return id |
| 187 | } |
| 188 | |
| 189 | // All executes the query and returns a list of GitCommits. |
| 190 | func (gcq *GitCommitQuery) All(ctx context.Context) ([]*GitCommit, error) { |