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

Method File

caddyconfig/caddyfile/dispenser.go:259–264  ·  view source on GitHub ↗

File gets the filename where the current token originated.

()

Source from the content-addressed store, hash-verified

257
258// File gets the filename where the current token originated.
259func (d *Dispenser) File() string {
260 if d.cursor < 0 || d.cursor >= len(d.tokens) {
261 return ""
262 }
263 return d.tokens[d.cursor].File
264}
265
266// Args is a convenience function that loads the next arguments
267// (tokens on the same line) into an arbitrary number of strings

Callers 7

SyntaxErrMethod · 0.95
WrapErrMethod · 0.95
reuseUnixSocketFunction · 0.80
CloseMethod · 0.80
CloseMethod · 0.80
doImportMethod · 0.80
NewRouteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected