parser

package
v0.0.0-...-ec65270 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 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 SpecFile

type SpecFile struct {
	Path     string `json:"path"`
	Name     string `json:"name"`
	Content  string `json:"content"`
	HTMLBody string `json:"html_body"`
	IsDir    bool   `json:"is_dir"`
}

func GetFileContent

func GetFileContent(filePath string) (*SpecFile, error)

func ParseMarkdownFile

func ParseMarkdownFile(filePath string) (*SpecFile, error)

type SpecTree

type SpecTree struct {
	Name     string      `json:"name"`
	Path     string      `json:"path"`
	IsDir    bool        `json:"is_dir"`
	Children []*SpecTree `json:"children,omitempty"`
	File     *SpecFile   `json:"file,omitempty"`
}

func ParseDirectory

func ParseDirectory(rootPath string) (*SpecTree, error)

func ParseMultipleDirectories

func ParseMultipleDirectories(paths []string) ([]*SpecTree, error)

Jump to

Keyboard shortcuts

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