Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocXParser ¶
type DocXParser struct { }
DocxParser implements the converter interface
func (DocXParser) ConvertDemo ¶
func (t DocXParser) ConvertDemo(i []byte) (Demo, error)
func (DocXParser) ConvertSource ¶
func (t DocXParser) ConvertSource(unprocessed []byte) (Source, error)
Convert unzips the docx file, finds the content (document.xml), parses the xml tree, and finally walks the xml tree in a top down fashion
type Parser ¶
func NewParser ¶
func NewParser(t DocumentType) (Parser, error)
GetParser returns the matching parser for the filetype or error if there is no correct parser
type Source ¶
func ConvertSource ¶
func ConvertSource(unprocessed []byte, t DocumentType) (Source, error)
ConvertSource takes the bytes from a file and the file type and generates a simple intermediate representation which can be manipulated.
type XlsxParser ¶
type XlsxParser struct { }
func (XlsxParser) ConvertDemo ¶
func (x XlsxParser) ConvertDemo(unprocessed []byte) (Demo, error)
func (XlsxParser) ConvertSource ¶
func (x XlsxParser) ConvertSource(i []byte) (Source, error)
Click to show internal directories.
Click to hide internal directories.