MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / IntX

Method IntX

app/controlplane/pkg/data/ent/ent.go:427–433  ·  view source on GitHub ↗

IntX is like Int, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

425
426// IntX is like Int, but panics if an error occurs.
427func (s *selector) IntX(ctx context.Context) int {
428 v, err := s.Int(ctx)
429 if err != nil {
430 panic(err)
431 }
432 return v
433}
434
435// Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
436func (s *selector) Float64s(ctx context.Context) ([]float64, error) {

Callers

nothing calls this directly

Calls 1

IntMethod · 0.95

Tested by

no test coverage detected