RemainingArgs loads any more arguments (tokens on the same line) into a slice of strings and returns them. Open curly brace tokens also indicate the end of arguments, and the curly brace is not included in the return value nor is it loaded.
()
| 312 | // also indicate the end of arguments, and the curly brace is not |
| 313 | // included in the return value nor is it loaded. |
| 314 | func (d *Dispenser) RemainingArgs() []string { |
| 315 | var args []string |
| 316 | for d.NextArg() { |
| 317 | args = append(args, d.Val()) |
| 318 | } |
| 319 | return args |
| 320 | } |
| 321 | |
| 322 | // RemainingArgsRaw loads any more arguments (tokens on the same line, |
| 323 | // retaining quotes) into a slice of strings and returns them. |