console

package
v0.0.0-...-66129a4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(w io.Writer) *Service

func (*Service) Error

func (s *Service) Error(message string)

Pretty-prints given error message

func (*Service) GetTerminalWidth

func (s *Service) GetTerminalWidth() int

Retrieves the terminal width to use when printing on console

func (*Service) Info

func (s *Service) Info(message string)

Pretty-prints given info message

func (*Service) Success

func (s *Service) Success(message string)

Pretty-prints given success message

Jump to

Keyboard shortcuts

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