Discover Packages
github.com/sassoftware/wbctl
internal
ui
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Oct 29, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ui provides common methods for user interaction on the command line
type Table interface {
Add(row ...string )
Print()
}
Table provides an interface for displaying tabular information.
NewTable returns a new Table with the given headers that will render to the
given UI.
type UI interface {
Display(message string , args ...interface{})
Ask(prompt string , args ...interface{}) (answer string )
AskForPassword(prompt string , args ...interface{}) (answer string )
Table(headers []string ) Table
Warn(message string , args ...interface{})
Error(message string , args ...interface{})
}
UI provides methods for interacting with the user in a terminal.
NewUI returns a new UI that will read from the given io.Reader and write to
the given io.Writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.