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

Method EOFErr

caddyconfig/caddyfile/dispenser.go:424–426  ·  view source on GitHub ↗

EOFErr returns an error indicating that the dispenser reached the end of the input when searching for the next token.

()

Source from the content-addressed store, hash-verified

422// EOFErr returns an error indicating that the dispenser reached
423// the end of the input when searching for the next token.
424func (d *Dispenser) EOFErr() error {
425 return d.Errf("unexpected EOF")
426}
427
428// Err generates a custom parse-time error with a message of msg.
429func (d *Dispenser) Err(msg string) error {

Callers 3

parseAllMethod · 0.80
addressesMethod · 0.80
directiveMethod · 0.80

Calls 1

ErrfMethod · 0.95

Tested by

no test coverage detected