package
2.1.3
Repository: https://github.com/gsmcwhirter/go-util.git
Documentation: pkg.go.dev

# Functions

MaybeCount attempts to split some text that might contain a "count" at the end Recognized "count" format is a string of digits, possibly preceded by an x, +, or -, preceeded by a space.
NewParser constructs a new Parser.
Tokenize will split a string into delim-separated tokens, accounting for quoted sections and escapes.

# Variables

ErrNotACommand is the error returned when the string to be parsed does not represent a command syntactically.
ErrTokenizeError represents an error tokenizing where there was an opening quote without a paired closing.
ErrUnknownCommand is the error returned when the string to be parsed is a command syntactically but that command is not registered.

# Structs

Options specifies options when constructing a new Parser - CmdIndicator is the string that all commands must be prefixed with (e.g., "!" or "/") - KnownCommands is a list of commands that should be recognized (expanded with LearnCommand) - CaseSensitive will make the parser case-sensitive when determining if it knows about a command.

# Interfaces

Parser is an interface describing a repl/text interface command parser.