parse

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package parse scans journal directories and extracts entry metadata from Markdown files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJournalEntry

func ParseJournalEntry(path, filename string) entity.JournalEntry

ParseJournalEntry extracts metadata from a journal file.

Parameters:

  • path: Full path to the journal file
  • filename: Filename (e.g., "2026-01-21-async-roaming-allen-af7cba21.md")

Returns:

  • JournalEntry: Parsed entry with title, date, project extracted

func ScanJournalEntries

func ScanJournalEntries(journalDir string) ([]entity.JournalEntry, error)

ScanJournalEntries reads all journal Markdown files and extracts metadata.

Parameters:

  • journalDir: Path to .context/journal/

Returns:

  • []JournalEntry: Parsed entries sorted by date (newest first)
  • error: Non-nil if directory scanning fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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