Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultValidationRegexPattern = regexp.MustCompile("^.*$")
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
Debug(args ...interface{})
Debugf(format string, args ...interface{})
Info(args ...interface{})
Infof(format string, args ...interface{})
Warn(args ...interface{})
Warnf(format string, args ...interface{})
Error(args ...interface{})
Errorf(format string, args ...interface{})
Fatal(args ...interface{})
Fatalf(format string, args ...interface{})
Panic(args ...interface{})
Panicf(format string, args ...interface{})
Done(args ...interface{})
Donef(format string, args ...interface{})
Fail(args ...interface{})
Failf(format string, args ...interface{})
StartWait(message string)
StopWait()
Print(level logrus.Level, args ...interface{})
Printf(level logrus.Level, format string, args ...interface{})
Write(message []byte) (int, error)
WriteString(message string)
Question(params *QuestionOptions) (string, error)
SetLevel(level logrus.Level)
GetLevel() logrus.Level
}
func GetInstance ¶
func GetInstance() Logger
type QuestionOptions ¶
type QuestionOptions struct {
Question string
DefaultValue string
ValidationRegexPattern string
ValidationMessage string
ValidationFunc func(value string) error
Options []string
IsPassword bool
IsMultiSelect bool
}
Click to show internal directories.
Click to hide internal directories.