ui

package
v0.3.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HorizontalSeparator

func HorizontalSeparator() string

func TextBox

func TextBox(text string) string

Types

type Renderer

type Renderer interface {
	Render([]*models.Result) string
}

Renderer defines the interface for rendering tables.

type ResultTableRenderer

type ResultTableRenderer struct{}

ResultTableRenderer implements Renderer for the Result model.

func NewResultTableRenderer

func NewResultTableRenderer() *ResultTableRenderer

NewResultTableRenderer creates a new instance of ResultTableRenderer.

func (*ResultTableRenderer) Render

func (r *ResultTableRenderer) Render(results []*models.Result) string

Render renders the table for a slice of Results.

Jump to

Keyboard shortcuts

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