template

package
v0.1.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateGenerationStrategy

type TemplateGenerationStrategy struct {
	// contains filtered or unexported fields
}

TemplateGenerationStrategy implements direct code generation using templates

func NewTemplateGenerationStrategy

func NewTemplateGenerationStrategy(templateEngine *templates.TemplateEngine, logger logger.Logger) *TemplateGenerationStrategy

NewTemplateGenerationStrategy creates a new template-based generation strategy

func (*TemplateGenerationStrategy) GenerateCode

func (s *TemplateGenerationStrategy) GenerateCode(ctx context.Context, opportunities []domain.Opportunity, req types.GenerationRequest) error

GenerateCode generates code directly using templates

func (*TemplateGenerationStrategy) GetName

func (s *TemplateGenerationStrategy) GetName() string

GetName returns the name of this strategy

func (*TemplateGenerationStrategy) GetRequiredFlags

func (s *TemplateGenerationStrategy) GetRequiredFlags() []string

GetRequiredFlags returns flags required for template generation

func (*TemplateGenerationStrategy) GetSupportedLanguages

func (s *TemplateGenerationStrategy) GetSupportedLanguages() []string

GetSupportedLanguages returns all supported languages for template generation

func (*TemplateGenerationStrategy) IsAvailable

func (s *TemplateGenerationStrategy) IsAvailable() bool

IsAvailable checks if template generation is available (always true)

type TemplateRenderer

type TemplateRenderer interface {
	GenerateInstructions(lang string, data templates.TemplateData) (string, error)
}

TemplateRenderer abstracts template execution for testability

Jump to

Keyboard shortcuts

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