prompt

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeReviewTemplate         = "code_review_file_diff.tmpl"
	SummarizeFileDiffTemplate  = "summarize_file_diff.tmpl"
	SummarizeTitleTemplate     = "summarize_title.tmpl"
	ConventionalCommitTemplate = "conventional_commit.tmpl"
	TranslationTemplate        = "translation.tmpl"
	SummarizePrefixKey         = "summarize_prefix"
	SummarizeTitleKey          = "summarize_title"
	SummarizeMessageKey        = "summarize_message"
)

Template file names

View Source
const DefaultLanguage = "English"

Variables

This section is empty.

Functions

func GetLanguage

func GetLanguage(langCode string) string

GetLanguage returns the language name for the given language code, or the default language if the code is not recognized.

func GetRawData added in v0.16.0

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

GetRawData returns the raw data of the template with the given name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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