Documentation ¶
Overview ¶
Package lexmlparser , Make a buffered reader of channel. Will keep the next input values read in a buffer where size if defined by b.size. Will release a new value with the readNext method.
Package lexmlparser ,
This package takes the tokens produced by the lexml package and creates a Go struct of the parsed values tokenStartTag TokenType = "tokenStartTag" // <tag> || < tokenEndTag TokenType = "tokenEndTag" // </tag> || /> tokenArgumentName TokenType = "tokenArgumentName" // name is infront of a = sign tokenArgumentValue TokenType = "tokenArgumentValue" // value is after a = sign tokenDescription TokenType = "tokenDescription" // Description, just text between tags tokenEOF TokenType = "tokenEOF" //End Of File tokenJustText TokenType = "tokenJustText" //just text, no start or end tag
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct { ChOut chan lexml.Token //ChOut, the channel out to be read by client Slice []lexml.Token //Slice which is the actual buffer // contains filtered or unexported fields }
Buffer is a buffer
func NewBuffer ¶
NewBuffer creates a new buffer, takes the buffer size as an input argument, and returns a *buffer.
Directories ¶
Path | Synopsis |
---|---|
This main.go file will typically be the parser, but here we just print out the tokens that is received.
|
This main.go file will typically be the parser, but here we just print out the tokens that is received. |
Click to show internal directories.
Click to hide internal directories.