Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2019 Changes in this version + var ErrEscape = errors.New("invalid escape sequence") + type Error struct + Line string + LineNum int + Message string + Position int + func (e *Error) Error() string + func (e *Error) PositionIndicator() string + type Escaper interface + EscapeIndex func(string) int + Unescape func(string) (string, int, error) + type GoEscaper byte + func (q GoEscaper) EscapeIndex(s string) int + func (q GoEscaper) Unescape(s string) (string, int, error) + type Scanner struct + func FromString(s string) *Scanner + func New(in io.Reader) *Scanner + func (s *Scanner) Char() rune + func (s *Scanner) Demand(str string) + func (s *Scanner) Eat(str string) bool + func (s *Scanner) End() bool + func (s *Scanner) Err() error + func (s *Scanner) Fail(msg string) + func (s *Scanner) Failf(format string, a ...interface{}) + func (s *Scanner) Float() float64 + func (s *Scanner) Ident() string + func (s *Scanner) Int() int + func (s *Scanner) Is(str string) bool + func (s *Scanner) IsFloat() bool + func (s *Scanner) IsIdent() bool + func (s *Scanner) IsInt() bool + func (s *Scanner) Peek() rune + func (s *Scanner) PeekFloat() (float64, bool) + func (s *Scanner) PeekIdent() string + func (s *Scanner) PeekInt() (int, bool) + func (s *Scanner) Quote(start, end string, esc Escaper) string + func (s *Scanner) QuoteMultiline(start, end string, esc Escaper) string + func (s *Scanner) Rune() rune + func (s *Scanner) String() string