Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

View Source
const (
	HideCursor   = "\033[?25l"
	ShowCursor   = "\033[?25h"
	ClearLine    = "\033[K"
	Reset        = "\033[0m"
	Red          = "\033[31m"
	Yellow       = "\033[33m"
	Green        = "\033[32m"
	Cyan         = "\033[0;36m"
	Blue         = "\033[34m"
	Magenta      = "\033[0;35m"
	Gray         = "\033[90m"
	LightGray    = "\033[38;5;244m"
	ClearSpinner = "\r" + ClearLine
)

Variables

View Source
var ClearSpinnerBytes []byte = []byte(ClearSpinner)
View Source
var ColorStates []string = []string{Red, Yellow, Green, Cyan, Blue, Magenta}
View Source
var SpinnerStates []string = []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"}

Functions

func MakePair

func MakePair(out, err io.Writer, color bool) (*UIWriter, *SpinnerWriter)

Types

type SpinnerWriter

type SpinnerWriter struct {
	UIWriter
	// contains filtered or unexported fields
}

func (*SpinnerWriter) Close

func (w *SpinnerWriter) Close() error

func (*SpinnerWriter) StartSpinner

func (w *SpinnerWriter) StartSpinner(ctx context.Context, clock timer.Clock)

type UIWriter

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

func (*UIWriter) Write

func (w *UIWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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