model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokenLink struct {
	Link string `json:"link"`
	Line int    `json:"line"`
}

BrokenLink represents a broken link in output

type Link struct {
	Raw     string // "[[Note#Heading|alias]]"
	Target  string // "Note" (before # or |)
	Heading string // "Heading" (optional)
	Alias   string // "alias" (optional)
	IsEmbed bool   // true if "![[..."
	Line    int    // line number in file
}

Link represents a wiki link found in a markdown file

type ValidationResult

type ValidationResult struct {
	BrokenLinks map[string][]BrokenLink // file path -> broken links
}

ValidationResult contains all broken links grouped by file

Jump to

Keyboard shortcuts

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