Documentation ¶
Index ¶
- Constants
- Variables
- func Blue(in string) string
- func Bold(in string) string
- func ColorHash(name string) (output string)
- func ContinueTask(s string, cont, noConfirm bool) bool
- func Cyan(in string) string
- func Error(a ...interface{})
- func Errorln(a ...interface{})
- func FormatTime(i int) string
- func FormatTimeQuery(i int) string
- func Green(in string) string
- func Human(size int64) string
- func Info(a ...interface{})
- func Infoln(a ...interface{})
- func LessRunes(iRunes, jRunes []rune) bool
- func Magenta(in string) string
- func OperationInfo(a ...interface{})
- func OperationInfoln(a ...interface{})
- func PrintInfoValue(key string, values ...string)
- func Red(in string) string
- func SplitDBFromName(pkg string) (db, name string)
- func SprintError(a ...interface{}) string
- func SprintOperationInfo(a ...interface{}) string
- func SprintWarn(a ...interface{}) string
- func TestLessRunes(t *testing.T)
- func Warn(a ...interface{})
- func Warnln(a ...interface{})
Constants ¶
View Source
const ( CyanCode = "\x1b[36m" ResetCode = "\x1b[0m" )
Variables ¶
View Source
var UseColor = true
UseColor determines if package will emit colors
Functions ¶
func ColorHash ¶
ColorHash Colors text using a hashing algorithm. The same text will always produce the same color while different text will produce a different color.
func ContinueTask ¶ added in v10.0.3
ContinueTask prompts if user wants to continue task. If NoConfirm is set the action will continue without user input.
func FormatTime ¶ added in v10.0.2
Formats a unix timestamp to ISO 8601 date (yyyy-mm-dd)
func FormatTimeQuery ¶ added in v10.0.2
Formats a unix timestamp to ISO 8601 date (Mon 02 Jan 2006 03:04:05 PM MST)
func LessRunes ¶ added in v10.0.3
LessRunes compares two rune values, and returns true if the first argument is lexicographicaly smaller.
func OperationInfo ¶
func OperationInfo(a ...interface{})
func OperationInfoln ¶
func OperationInfoln(a ...interface{})
func PrintInfoValue ¶
func SplitDBFromName ¶ added in v10.0.3
SplitDBFromName split apart db/package to db and package
func SprintError ¶ added in v10.0.3
func SprintError(a ...interface{}) string
func SprintOperationInfo ¶ added in v10.0.3
func SprintOperationInfo(a ...interface{}) string
func SprintWarn ¶ added in v10.0.3
func SprintWarn(a ...interface{}) string
func TestLessRunes ¶ added in v10.0.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.