keyref

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllKeys

func AllKeys(table KeyTable) []string

Types

type KeyEntry

type KeyEntry struct {
	Href  string
	Title string
}

func Resolve

func Resolve(table KeyTable, key string) (KeyEntry, bool)

type KeyTable

type KeyTable map[string]KeyEntry

func BuildMergedTable

func BuildMergedTable(mapTexts []string) KeyTable

func ExtractKeys

func ExtractKeys(m *ditamap.MapStructure) KeyTable

type KeyrefAtPos

type KeyrefAtPos struct {
	Label string
	Range document.Range
}

func DetectAtPosition

func DetectAtPosition(text string, pos document.Position) *KeyrefAtPos

type KeyrefLocation

type KeyrefLocation struct {
	Key     string
	Line    int
	EndChar int
}

func DetectAll

func DetectAll(text string) []KeyrefLocation

Jump to

Keyboard shortcuts

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