Arg implements formatListArgs.Arg.
(index int64)
| 721 | |
| 722 | // Arg implements formatListArgs.Arg. |
| 723 | func (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. |
| 731 | func (c *stringArgList) Size() int64 { |