parser

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package parser reads markdown task files with YAML frontmatter.

It extracts structured model.Task values from .md files, deriving task IDs and titles from filenames when not specified in frontmatter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTaskContent

func ParseTaskContent(filePath string, content []byte) (*model.Task, error)

ParseTaskContent parses task content from bytes

func ParseTaskFile

func ParseTaskFile(filePath string) (*model.Task, error)

ParseTaskFile reads and parses a markdown file with YAML frontmatter

Types

type ParseError

type ParseError struct {
	FilePath string
	Message  string
	Err      error
}

ParseError represents an error during parsing

func (*ParseError) Error

func (e *ParseError) Error() string

Jump to

Keyboard shortcuts

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