parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveFilePath

func ResolveFilePath(input string) (string, error)

ResolveFilePath resolves a URL, short path, or file path to an actual file path. Supports:

Types

type ParsedComment

type ParsedComment struct {
	ID       string // empty = new comment
	Author   string
	Body     string
	ParentID string // for discussion replies (derived from indentation)
}

ParsedComment represents a parsed comment from the markdown file.

type ParsedFile

type ParsedFile struct {
	// From frontmatter
	ID      string
	Owner   string
	Repo    string
	Number  int
	Updated time.Time // For conflict detection
	State   string    // open/closed from frontmatter

	// From content
	Title    string
	Body     string
	ItemType github.ItemType
	Comments []ParsedComment // Parsed from comments section

	// Original file path
	FilePath string
}

ParsedFile represents a parsed markdown file.

func ParseFile

func ParseFile(path string) (*ParsedFile, error)

ParseFile parses a markdown file and returns structured data.

Jump to

Keyboard shortcuts

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