infrastructure

package
v0.0.0-...-36570af Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOAdapter

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

func NewIOAdapter

func NewIOAdapter(r io.Reader, w io.Writer, logger *slog.Logger) *IOAdapter

func (*IOAdapter) Input

func (a *IOAdapter) Input() (string, error)

func (*IOAdapter) Output

func (a *IOAdapter) Output(content ...string)

func (*IOAdapter) PrintOut

func (a *IOAdapter) PrintOut(result, figure string, errorsMade, errorsBalance int,
	isUserWon, isUserLost bool, word, wrongLetters, hint string)

func (*IOAdapter) UserInput

func (a *IOAdapter) UserInput() string

Jump to

Keyboard shortcuts

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