prompt

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: 3 Imported by: 0

Documentation

Overview

Package prompt provides access to embedded prompt templates for code review, refactoring, and explanation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Template

func Template(name string) ([]byte, error)

Template reads a prompt template by name.

Parameters:

  • name: Template filename (e.g., "code-review.md")

Returns:

  • []byte: Template content from prompt-templates/
  • error: Non-nil if the file is not found or read fails

func TemplateList

func TemplateList() ([]string, error)

TemplateList returns available prompt template file names.

Returns:

  • []string: List of template filenames in prompt-templates/
  • error: Non-nil if directory read fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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