MCPcopy
hub / github.com/caddyserver/caddy / RemainingArgs

Method RemainingArgs

caddyconfig/caddyfile/dispenser.go:314–320  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

312// also indicate the end of arguments, and the curly brace is not
313// included in the return value nor is it loaded.
314func (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.

Callers 15

parseACMEServerFunction · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80

Calls 2

NextArgMethod · 0.95
ValMethod · 0.95

Tested by 1