MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Arg

Method Arg

ext/formatting.go:723–728  ·  view source on GitHub ↗

Arg implements formatListArgs.Arg.

(index int64)

Source from the content-addressed store, hash-verified

721
722// Arg implements formatListArgs.Arg.
723func (c *stringArgList) Arg(index int64) (ref.Val, error) {
724 if index >= c.args.Size().Value().(int64) {
725 return nil, fmt.Errorf("index %d out of range", index)
726 }
727 return c.args.Get(types.Int(index)), nil
728}
729
730// Size implements formatListArgs.Size.
731func (c *stringArgList) Size() int64 {

Callers

nothing calls this directly

Calls 4

IntTypeAlias · 0.92
ValueMethod · 0.65
SizeMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected