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

Method RemainingArgsRaw

caddyconfig/caddyfile/dispenser.go:326–332  ·  view source on GitHub ↗

RemainingArgsRaw loads any more arguments (tokens on the same line, retaining quotes) 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

324// Open curly brace tokens also indicate the end of arguments,
325// and the curly brace is not included in the return value nor is it loaded.
326func (d *Dispenser) RemainingArgsRaw() []string {
327 var args []string
328 for d.NextArg() {
329 args = append(args, d.ValRaw())
330 }
331 return args
332}
333
334// RemainingArgsAsTokens loads any more arguments (tokens on the same line)
335// into a slice of Token-structs and returns them. Open curly brace tokens

Callers 1

UnmarshalCaddyfileMethod · 0.80

Calls 2

NextArgMethod · 0.95
ValRawMethod · 0.95

Tested by

no test coverage detected