library

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrPathTraversal is returned when a path traversal attempt is detected
	ErrPathTraversal = errors.New("path traversal detected")
	// ErrInvalidImportName is returned when an import name is invalid
	ErrInvalidImportName = errors.New("invalid import name")
)

Functions

This section is empty.

Types

type Library

type Library struct {
	Project []string
	Global  []string
	BuiltIn []string
}

Library represents available libraries by source

type Manager

type Manager struct {
	ProjectDir  string
	SearchPaths []string
}

Manager handles prompt library resolution and loading

func NewManager

func NewManager(projectDir string) *Manager

NewManager creates a new library manager

func (*Manager) ListLibraries

func (m *Manager) ListLibraries() *Library

ListLibraries returns all available libraries organized by source

func (*Manager) Resolve

func (m *Manager) Resolve(importName string) (string, error)

Resolve resolves an import name to file content

Jump to

Keyboard shortcuts

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