Documentation
¶
Index ¶
Constants ¶
View Source
const EraseLineSequence = ansi.EraseEntireLine + "\r" + ansi.CursorUp1
Variables ¶
Functions ¶
func NewBase ¶
NewBase groups together important logs under a section. Description and child are optional.
Types ¶
type Loader ¶
type Loader interface {
quicklog.AnimatedMessage
// Update sets a new message for the loader. It has no effect if called after Close, Success or Error.
// If step is empty, the previous step will be re-rendered.
Update(step string)
// Nest adds more information to the loader in the form of an additional message.
Nest(message quicklog.Message)
// Success generates a success message, and closes the loader.
// If step is empty, the previous step will be re-rendered.
Success(step string)
// Error generates an error message, and closes the loader.
Error(err error)
}
func NewLoader ¶
func NewLoader(step string, config *LoaderConfig) Loader
Click to show internal directories.
Click to hide internal directories.