ui

package
v0.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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 BenchmarksTableRenderer

type BenchmarksTableRenderer struct{}

BenchmarksTableRenderer implements Renderer for the Benchmark model.

func NewBenchmarksTableRenderer

func NewBenchmarksTableRenderer() *BenchmarksTableRenderer

NewBenchmarksTableRenderer creates a new instance of BenchmarksTableRenderer.

func (*BenchmarksTableRenderer) Render

func (r *BenchmarksTableRenderer) Render(benchmarks []*models.Benchmark) string

Render renders the table for a slice of benchmarks.

type Renderer

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

Renderer defines the interface for rendering tables.

Jump to

Keyboard shortcuts

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