load

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package load reads the .context/ directory and assembles its files into an entity.Context with metadata, token estimates, and summaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(dir string) (*entity.Context, error)

Do reads all context files from the specified directory.

If dir is empty, it uses the configured context directory from .ctxrc, CTX_DIR environment variable, or the default ".context".

Parameters:

  • dir: Directory path to load from, or empty string for default

Returns:

  • *Context: Loaded context with files, token counts, and metadata
  • error: NotFoundError if directory doesn't exist, or other IO errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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