Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupportedFile = errors.New("unsupported file to parse")
ErrNotSupportedFile represents an error when a file is not supported by KICS
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a representation of parsers that will be construct
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a struct that associates a parser to its supported extensions
func (*Parser) Parse ¶
func (c *Parser) Parse(filePath string, fileContent []byte) ([]model.Document, model.FileKind, error)
Parse executes a parser on the fileContent and returns the file content as a Document, the file kind and an error, if an error has occurred
func (*Parser) SupportedExtensions ¶
func (c *Parser) SupportedExtensions() model.Extensions
SupportedExtensions returns extensions supported by KICS
Click to show internal directories.
Click to hide internal directories.