Help us shape the future of Go! Take the 2026 Go Developer Survey

doclinks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package doclinks verifies local destinations in Markdown documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokenLink struct {
	Source string
	Line   int
	Target string
}

BrokenLink identifies a local destination that does not exist.

func CheckFiles

func CheckFiles(root string, files []string) ([]BrokenLink, error)

CheckFiles returns local link destinations that do not exist below root.

type Link struct {
	Line        int
	Destination string
}

Link is one Markdown link or image destination.

func Parse

func Parse(source []byte) ([]Link, error)

Parse returns links from Markdown syntax nodes. It excludes code and raw HTML.

Jump to

Keyboard shortcuts

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