Documentation
¶
Index ¶
- Variables
- func FDebug(text string) string
- func FError(text string) string
- func FInfo(text string) string
- func FStream(text string) string
- func FSuccess(text string) string
- func FWarning(text string) string
- func PrintDebug(text string)
- func PrintError(text string)
- func PrintInfo(text string)
- func PrintProgressBar(current, total int64, width int) string
- func PrintStream(text string)
- func PrintSuccess(text string)
- func PrintWarning(text string)
- type Dictionary
- type ErrorReport
- type FunctionOutput
- type Manager
- func (m *Manager) AddProgressBarToStream(name string, outof, final int64, text string)
- func (m *Manager) ClearAll()
- func (m *Manager) Complete(name, message string)
- func (m *Manager) GetStatusIndicator(status string) string
- func (m *Manager) Register(name string) string
- func (m *Manager) RegisterTable(name string, headers []string) *Table
- func (m *Manager) ReportError(name string, err error)
- func (m *Manager) SetMessage(name, message string)
- func (m *Manager) ShowSummary()
- func (m *Manager) StartDisplay()
- func (m *Manager) StopDisplay()
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalDebugFlag bool
View Source
var StyleSymbols = map[string]string{
"pass": "✓",
"fail": "✗",
"warning": "!",
"pending": "◉",
"info": "ℹ",
"arrow": "→",
"bullet": "•",
"dot": "·",
"hline": "━",
}
Functions ¶
func PrintDebug ¶ added in v0.2.11
func PrintDebug(text string)
func PrintError ¶ added in v0.2.11
func PrintError(text string)
func PrintProgressBar ¶ added in v0.2.11
func PrintStream ¶ added in v0.2.11
func PrintStream(text string)
func PrintSuccess ¶ added in v0.2.11
func PrintSuccess(text string)
func PrintWarning ¶ added in v0.2.11
func PrintWarning(text string)
Types ¶
type Dictionary ¶ added in v0.0.2
func (Dictionary) UnwindBool ¶ added in v0.0.2
func (d Dictionary) UnwindBool(keys ...string) bool
func (Dictionary) UnwindInt ¶ added in v0.0.2
func (d Dictionary) UnwindInt(keys ...string) int
func (Dictionary) UnwindString ¶ added in v0.0.2
func (d Dictionary) UnwindString(keys ...string) string
func (Dictionary) UnwindValue ¶ added in v0.0.2
func (d Dictionary) UnwindValue(keys ...string) any
UnwindValue safely navigates and retrieves values from nested maps
type ErrorReport ¶ added in v0.2.11
type FunctionOutput ¶ added in v0.2.11
type Manager ¶ added in v0.2.11
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.2.11
func NewManager() *Manager
func (*Manager) AddProgressBarToStream ¶ added in v0.2.11
func (*Manager) GetStatusIndicator ¶ added in v0.2.11
func (*Manager) RegisterTable ¶ added in v0.2.11
Add a global table
func (*Manager) ReportError ¶ added in v0.2.11
func (*Manager) SetMessage ¶ added in v0.2.11
func (*Manager) ShowSummary ¶ added in v0.2.11
func (m *Manager) ShowSummary()
func (*Manager) StartDisplay ¶ added in v0.2.11
func (m *Manager) StartDisplay()
func (*Manager) StopDisplay ¶ added in v0.2.11
func (m *Manager) StopDisplay()
type Table ¶ added in v0.2.11
func (*Table) FormatTable ¶ added in v0.2.11
func (*Table) PrintTable ¶ added in v0.2.11
Click to show internal directories.
Click to hide internal directories.