renderer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompactRenderer

type CompactRenderer struct {
}

func NewCompactRenderer

func NewCompactRenderer() CompactRenderer

func (CompactRenderer) RenderClues

func (f CompactRenderer) RenderClues(c *crossword.Crossword, clues map[string]string, solved bool) string

func (CompactRenderer) RenderCrossword

func (f CompactRenderer) RenderCrossword(c *crossword.Crossword, solved bool) string

func (CompactRenderer) RenderCrosswordAndClues

func (f CompactRenderer) RenderCrosswordAndClues(c *crossword.Crossword, clues map[string]string, solved bool) string

type Renderer

type Renderer interface {
	RenderCrosswordAndClues(c *crossword.Crossword, clues map[string]string, solved bool) string
	RenderCrossword(c *crossword.Crossword, solved bool) string
	RenderClues(c *crossword.Crossword, clues map[string]string, solved bool) string
}

type StandardRenderer

type StandardRenderer struct {
}

func NewStandardRenderer

func NewStandardRenderer() StandardRenderer

func (StandardRenderer) RenderClues

func (f StandardRenderer) RenderClues(c *crossword.Crossword, clues map[string]string, solved bool) string

func (StandardRenderer) RenderCrossword

func (f StandardRenderer) RenderCrossword(c *crossword.Crossword, solved bool) string

func (StandardRenderer) RenderCrosswordAndClues

func (f StandardRenderer) RenderCrosswordAndClues(c *crossword.Crossword, clues map[string]string, solved bool) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳