parser

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockInfo

type BlockInfo struct {
	Type       string
	SubType    string
	Name       string
	SourceFile string
	// Block content
	Content []byte
}

type Parser

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

func NewParser

func NewParser(excludes []string, log *logger.Logger) *Parser

func (*Parser) ParseDirectory

func (p *Parser) ParseDirectory(dir string) ([]BlockInfo, error)

func (*Parser) ParseFile

func (p *Parser) ParseFile(path string) ([]BlockInfo, error)

Jump to

Keyboard shortcuts

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