codemap

package
v0.0.0-...-8931c2e Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Variables

This section is empty.

Functions

func FormatMap

func FormatMap(w io.Writer, sections []Section)

FormatMap writes the map to w in the standard format.

func NeedsUpdate

func NeedsUpdate(root, mapFile string) bool

NeedsUpdate returns true if any source file in root is newer than mapFile. Returns true if mapFile does not exist.

Types

type Section

type Section struct {
	Language string
	Groups   map[string][]string // group name -> keywords
}

Section represents a language section with grouped keywords.

func BuildMap

func BuildMap(root string) ([]Section, error)

BuildMap scans the directory and extracts keywords from all supported files.

Jump to

Keyboard shortcuts

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