extract

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAllListings

func ExtractAllListings(
	files []string,
	inDir string,
	d map[string]entry.Entry,
	isExt bool,
) ([]string, map[string][]listing.Listing, map[string]bool, error)

The main callable function for extract.go to call all the relevant functions to populate listing, missing indexes, and skipped files

func ExtractEntry

func ExtractEntry(files []string, inDir string, isHighlight bool, isExt bool) (
	map[string]entry.Entry,
	[]tag.Tag,
	map[string]bool,
	error,
)

Process files to build up the entry data for all files, the tags data, and the linked internal asset. Exclusive calls to parse.* are made here. Calls parse.ParseMetadata() to grab metadata. Calls parse.ParseSource() to grab html body. Calls parse.ParseInternalLinks() to grab backlinks and internal links. Additionally construct the backlinks, relatedlinks, asset map and tags slice

These are the returned data:

d: entry.Entry (key: entry filename)

i: linked internal assets (key: asset filename)

Types

This section is empty.

Jump to

Keyboard shortcuts

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