render

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Functions

This section is empty.

Types

type DirectoryPath

type DirectoryPath string

func NewDirectoryPath

func NewDirectoryPath(path string) (DirectoryPath, error)

func (DirectoryPath) String

func (d DirectoryPath) String() string

type QuestionRenderer

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

func New

func New() (*QuestionRenderer, error)

func (*QuestionRenderer) RenderProblem

func (r *QuestionRenderer) RenderProblem(ctx context.Context, problem *domain.Problem, force bool) (*RenderResult, error)

type RenderResult

type RenderResult struct {
	DirectoryCreated string
	FilesCreated     []string
	FilesUpdated     []string
	FilesSkipped     []string
	TestSupported    bool
}

func NewRenderResult

func NewRenderResult() *RenderResult

func (*RenderResult) RecordAllSkipped

func (r *RenderResult) RecordAllSkipped()

func (*RenderResult) RecordDirectoryCreated

func (r *RenderResult) RecordDirectoryCreated(path domain.Path)

func (*RenderResult) RecordFileCreated

func (r *RenderResult) RecordFileCreated(path domain.Path)

func (*RenderResult) RecordFileSkipped

func (r *RenderResult) RecordFileSkipped(path domain.Path)

func (*RenderResult) RecordFileUpdated

func (r *RenderResult) RecordFileUpdated(path domain.Path)

func (*RenderResult) RecordTestUnsupported

func (r *RenderResult) RecordTestUnsupported()

type RenderStrategy

type RenderStrategy int
const (
	SkipExisting RenderStrategy = iota
	ForceOverwrite
)

type Renderer

type Renderer interface {
	RenderProblem(ctx context.Context, problem *domain.Problem, force bool) (*RenderResult, error)
}

Jump to

Keyboard shortcuts

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