Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFilesXML ¶
func FormatFilesXML(files []FileContent, stdin string) string
FormatFilesXML formats file contents as XML for inclusion in prompts
Types ¶
type FileContent ¶
type FileContent struct {
Path string // File path or special identifier (e.g., "clipboard")
Content string // The text content
}
FileContent represents content read from a file or other source
func ReadFiles ¶
func ReadFiles(paths []string) ([]FileContent, error)
ReadFiles reads content from the given paths Special values:
- "clipboard": reads text from system clipboard
- Glob patterns (e.g., "*.go"): expands and reads all matching files
- Regular paths: reads file content directly
Click to show internal directories.
Click to hide internal directories.