MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / ExecX

Method ExecX

ent/share_create.go:213–217  ·  view source on GitHub ↗

ExecX is like Exec, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

211
212// ExecX is like Exec, but panics if an error occurs.
213func (sc *ShareCreate) ExecX(ctx context.Context) {
214 if err := sc.Exec(ctx); err != nil {
215 panic(err)
216 }
217}
218
219// defaults sets the default values of the builder before save.
220func (sc *ShareCreate) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected