parser

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSupportedFile = errors.New("unsupported file to parse")

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Add

func (b *Builder) Add(p kindParser) *Builder

func (*Builder) Build

func (b *Builder) Build() *Parser

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Parse

func (c *Parser) Parse(filePath string, fileContent []byte) ([]model.Document, model.FileKind, error)

func (*Parser) SupportedExtensions

func (c *Parser) SupportedExtensions() model.Extensions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL