Set sets the argument at the specified index to the string representation of the value.
(index int, value any)
| 14 | |
| 15 | // Set sets the argument at the specified index to the string representation of the value. |
| 16 | func (a *OptionArgs) Set(index int, value any) *OptionArgs { |
| 17 | a.args[index] = fmt.Sprintf("%v", value) |
| 18 | return a |
| 19 | } |
| 20 | |
| 21 | // String returns the string representation of the arguments, trimming empty arguments from the end. |
| 22 | func (a *OptionArgs) String() string { |