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

prompt

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PromptAnalyzeRepo string

Functions

This section is empty.

Types

type FilePrompt

type FilePrompt struct {
	Type PromptType `json:"type"`
	Path string     `json:"path"`
	Data any        `json:"data"`
	// contains filtered or unexported fields
}

func (FilePrompt) String

func (p FilePrompt) String() string

type Prompt

type Prompt interface {
	String() string
}

func NewFilePrompt

func NewFilePrompt(c *FilePrompt) Prompt

func NewTextPrompt

func NewTextPrompt(content string) Prompt

type PromptType

type PromptType string
const (
	PromptTypePlainText  PromptType = "text"
	PromptTypeDummy      PromptType = "dummy"
	PromptTypeGoTemplate PromptType = "go-template"
)

type TextPrompt

type TextPrompt string

func (TextPrompt) String

func (p TextPrompt) String() string

Jump to

Keyboard shortcuts

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