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

Method StringX

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

StringX is like String, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

378
379// StringX is like String, but panics if an error occurs.
380func (s *selector) StringX(ctx context.Context) string {
381 v, err := s.String(ctx)
382 if err != nil {
383 panic(err)
384 }
385 return v
386}
387
388// Ints returns list of ints from a selector. It is only allowed when selecting one field.
389func (s *selector) Ints(ctx context.Context) ([]int, error) {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected