Help us shape the future of Go! Take the 2026 Go Developer Survey

context

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatForPrompt

func FormatForPrompt(files []ContextFile) string

FormatForPrompt wraps each context file in XML-style tags for prompt insertion.

Types

type ContextFile

type ContextFile struct {
	Path    string
	Content string // after redaction
}

ContextFile holds a loaded grounding document after redaction.

func Load

func Load(paths []string) ([]ContextFile, error)

Load reads a list of context files from disk and redacts each one.

Jump to

Keyboard shortcuts

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