Versions in this module Expand all Collapse all v1 v1.0.0 Sep 29, 2024 Changes in this version + func FromJSON(jsonBytes []byte) ([]byte, error) + func ToJSON(kenginefile []byte) ([]byte, error) + type Dispenser struct + func NewDispenser(filename string, input io.Reader) Dispenser + func NewDispenserTokens(filename string, tokens []Token) Dispenser + func (d *Dispenser) ArgErr() error + func (d *Dispenser) Args(targets ...*string) bool + func (d *Dispenser) EOFErr() error + func (d *Dispenser) Err(msg string) error + func (d *Dispenser) Errf(format string, args ...interface{}) error + func (d *Dispenser) File() string + func (d *Dispenser) Line() int + func (d *Dispenser) Next() bool + func (d *Dispenser) NextArg() bool + func (d *Dispenser) NextBlock() bool + func (d *Dispenser) NextLine() bool + func (d *Dispenser) RemainingArgs() []string + func (d *Dispenser) SyntaxErr(expected string) error + func (d *Dispenser) Val() string + type EncodedKenginefile []EncodedServerBlock + type EncodedServerBlock struct + Body [][]interface{} + Keys []string + type ServerBlock struct + Keys []string + Tokens map[string][]Token + func Parse(filename string, input io.Reader, validDirectives []string) ([]ServerBlock, error) + type Token struct + File string + Line int + Text string