deps

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Namespace string
	Name      string
	Version   string
}

Dependency represents a parsed Typst package import.

func ExtractFromDirectory

func ExtractFromDirectory(dirPath string) ([]Dependency, error)

ExtractFromDirectory walks a local directory, scanning all .typ files for imports.

func ExtractFromSource

func ExtractFromSource(content []byte) []Dependency

ExtractFromSource scans a single .typ file's content for package imports.

func (Dependency) Key

func (d Dependency) Key() string

Key returns a unique string key for deduplication.

Jump to

Keyboard shortcuts

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