SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 167 | |
| 168 | // SaveX calls Save and panics if Save returns an error. |
| 169 | func (gcc *GitCommitCreate) SaveX(ctx context.Context) *GitCommit { |
| 170 | v, err := gcc.Save(ctx) |
| 171 | if err != nil { |
| 172 | panic(err) |
| 173 | } |
| 174 | return v |
| 175 | } |
| 176 | |
| 177 | // Exec executes the query. |
| 178 | func (gcc *GitCommitCreate) Exec(ctx context.Context) error { |