Documentation ¶
Index ¶
- Constants
- func Bold(msg string) string
- func ErrorEmoji() string
- func GoEmoji() string
- func Green(msg string) string
- func Italic(msg string) string
- func Magenta(msg string) string
- func OkEmoji() string
- func Red(msg string) string
- func SaveEmoji() string
- func StopEmoji() string
- func SuccessEmoji() string
- func TryEmoji() string
- func WarningEmoji() string
- type Logger
- type Spinner
- type StdoutLogger
Constants ¶
View Source
const ( NoneLog = 0 ErrorLog = 1 DebugLog = 2 InfoLog = 3 )
Variables ¶
This section is empty.
Functions ¶
func ErrorEmoji ¶
func ErrorEmoji() string
func SuccessEmoji ¶
func SuccessEmoji() string
func WarningEmoji ¶
func WarningEmoji() string
Types ¶
type StdoutLogger ¶
type StdoutLogger struct {
// contains filtered or unexported fields
}
StdoutLogger is a stdout logging implementation.
func NewStdoutLogger ¶
func NewStdoutLogger(level int) *StdoutLogger
NewStdoutLogger returns a new stdout logger.
func (*StdoutLogger) Debug ¶
func (s *StdoutLogger) Debug(msg string)
func (*StdoutLogger) Error ¶
func (s *StdoutLogger) Error(msg string)
func (*StdoutLogger) Info ¶
func (s *StdoutLogger) Info(msg string)
func (*StdoutLogger) StartProgress ¶
func (s *StdoutLogger) StartProgress(msg string)
func (*StdoutLogger) StopProgress ¶
func (s *StdoutLogger) StopProgress()
Click to show internal directories.
Click to hide internal directories.