Documentation ¶
Overview ¶
Package textual provides parsing for telnet-like protocols.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { Prefix string //Prefix to remove Suffix string //Suffix to remove OpenBrackets bool //Whether or not to open enclosures by removing the bracket characters Brackets []byte //The characters to treat as brackets ArgumentSeparators []byte //The characters to treat as separators between arguments and therefore split the text by Trim bool //Whether or not to remove heading and trailing whitespaces. }
A parser can be configured to remove a prefix, a suffix, heading and trailing whitespaces, split the text in arguments using separators, detect escaped characters by recognizing "brackets" (enclosures), and remove said brackets from the argument.
Click to show internal directories.
Click to hide internal directories.