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

Method Next

caddyconfig/caddyfile/dispenser.go:60–66  ·  view source on GitHub ↗

Next loads the next token. Returns true if a token was loaded; false otherwise. If false, all tokens have been consumed.

()

Source from the content-addressed store, hash-verified

58// was loaded; false otherwise. If false, all tokens
59// have been consumed.
60func (d *Dispenser) Next() bool {
61 if d.cursor < len(d.tokens)-1 {
62 d.cursor++
63 return true
64 }
65 return false
66}
67
68// Prev moves to the previous token. It does the inverse
69// of Next(), except this function may decrement the cursor

Callers 4

doImportMethod · 0.95
NextBlockMethod · 0.95
NextSegmentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected