textio

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(text, def string) (string, error)

func Info

func Info(text string)

func Print

func Print(text string)

func Select

func Select(text string, options map[string]string, def string) (string, error)

Types

type SpinnerPrinter

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

func NewSpinnerPrinter

func NewSpinnerPrinter() *SpinnerPrinter

func (*SpinnerPrinter) EnsureNewline

func (s *SpinnerPrinter) EnsureNewline()

func (*SpinnerPrinter) Print

func (s *SpinnerPrinter) Print(content string)

func (*SpinnerPrinter) Start

func (s *SpinnerPrinter) Start()

func (*SpinnerPrinter) Stop

func (s *SpinnerPrinter) Stop()

func (*SpinnerPrinter) Tick

func (s *SpinnerPrinter) Tick()

Jump to

Keyboard shortcuts

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