review

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package review generates PDF review sheets from Markdown frontmatter questions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadQuestions

func LoadQuestions(sources ...string) ([]string, error)

LoadQuestions parses sources and returns all questions from their Markdown frontmatter in randomized order.

func New

func New(page Page) ([]byte, error)

func Write

func Write(w io.Writer, p Page) error

Write parses sources, collects and shuffles their questions, and writes a generated PDF to w.

Types

type Page

type Page struct {
	Title          string
	Description    string
	Questions      []string
	BonusQuestions []string
	CreatedAt      time.Time
}

Jump to

Keyboard shortcuts

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