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

Method RemainingArgsAsTokens

caddyconfig/caddyfile/dispenser.go:338–344  ·  view source on GitHub ↗

RemainingArgsAsTokens loads any more arguments (tokens on the same line) into a slice of Token-structs 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

336// also indicate the end of arguments, and the curly brace is not included
337// in the return value nor is it loaded.
338func (d *Dispenser) RemainingArgsAsTokens() []Token {
339 var args []Token
340 for d.NextArg() {
341 args = append(args, d.Token())
342 }
343 return args
344}
345
346// NewFromNextSegment returns a new dispenser with a copy of
347// the tokens from the current token until the end of the

Callers 2

doImportMethod · 0.95

Calls 2

NextArgMethod · 0.95
TokenMethod · 0.95

Tested by 1