Versions in this module Expand all Collapse all v0 v0.1.1 Nov 10, 2020 v0.1.0 Apr 6, 2020 Changes in this version + var ErrNoClosing = errors.New("no closing quotation") + var ErrNoEscaped = errors.New("no escaped character") + func Split(s string, posix bool) ([]string, error) + type DefaultTokenizer struct + func (t *DefaultTokenizer) IsEscape(r rune) bool + func (t *DefaultTokenizer) IsEscapedQuote(r rune) bool + func (t *DefaultTokenizer) IsQuote(r rune) bool + func (t *DefaultTokenizer) IsWhitespace(r rune) bool + func (t *DefaultTokenizer) IsWord(r rune) bool + type Lexer struct + func NewLexer(r io.Reader, posix, whitespaceSplit bool) *Lexer + func NewLexerString(s string, posix, whitespaceSplit bool) *Lexer + func (l *Lexer) SetTokenizer(t Tokenizer) + func (l *Lexer) Split() ([]string, error) + type Tokenizer interface + IsEscape func(rune) bool + IsEscapedQuote func(rune) bool + IsQuote func(rune) bool + IsWhitespace func(rune) bool + IsWord func(rune) bool