MCPcopy Create free account

hub / github.com/labstack/gommon / functions

Functions185 in github.com/labstack/gommon

↓ 64 callersFunctionParse
Parse wraps global Bytes's Parse function.
bytes/bytes.go:214
↓ 34 callersFunctionPrintln
Println is analogous to `fmt.Println` with termial detection.
color/color.go:300
↓ 25 callersFunctionouter
(n string)
color/color.go:105
↓ 22 callersMethodString
(length uint8, charsets ...string)
random/random.go:45
↓ 15 callersMethodlog
(level Lvl, message string, jsonBody bool)
log/log.go:360
↓ 13 callersMethodwriteHeader
(key, value string)
email/email.go:61
↓ 10 callersFunctionFormat
Format wraps global Bytes's Format function.
bytes/bytes.go:199
↓ 9 callersFunctionNew
(prefix string)
log/log.go:60
↓ 9 callersMethodSetOutput
(w io.Writer)
log/log.go:125
↓ 8 callersFunctionFormatDecimal
FormatDecimal wraps global Bytes's FormatDecimal function.
bytes/bytes.go:209
↓ 7 callersMethodlogJSON
(level Lvl, j JSON)
log/log.go:352
↓ 6 callersMethodSetLevel
(level Lvl)
log/log.go:117
↓ 5 callersMethodError
(i ...interface{})
log/log.go:188
↓ 5 callersMethodErrorf
(format string, args ...interface{})
log/log.go:192
↓ 5 callersMethodReset
(msg interface{}, styles ...string)
color/color.go:244
↓ 4 callersMethodDebugf
(format string, args ...interface{})
log/log.go:156
↓ 4 callersMethodFormat
Format formats bytes integer to human readable string according to IEC 60027. For example, 31323 bytes will return 30.59KB.
bytes/bytes.go:49
↓ 4 callersMethodInfo
(i ...interface{})
log/log.go:164
↓ 4 callersMethodSetHeader
(h string)
log/log.go:136
↓ 4 callersFunctionString
(length uint8, charsets ...string)
random/random.go:89
↓ 4 callersMethoddial
()
email/email.go:181
↓ 3 callersMethodDisableColor
()
log/log.go:95
↓ 3 callersMethodFatalf
(format string, args ...interface{})
log/log.go:205
↓ 3 callersFunctionGreen
(msg interface{}, styles ...string)
color/color.go:317
↓ 3 callersMethodInfof
(format string, args ...interface{})
log/log.go:168
↓ 3 callersFunctionNew
(smtpAddress string)
email/email.go:54
↓ 3 callersFunctionRed
(msg interface{}, styles ...string)
color/color.go:313
↓ 3 callersMethodRed
(msg interface{}, styles ...string)
color/color.go:180
↓ 3 callersMethodYellow
(msg interface{}, styles ...string)
color/color.go:188
↓ 3 callersMethodinitLevels
()
log/log.go:78
↓ 3 callersMethodwriteBoundary
()
email/email.go:68
↓ 2 callersFunctionBlue
(msg interface{}, styles ...string)
color/color.go:325
↓ 2 callersMethodBlue
(msg interface{}, styles ...string)
color/color.go:192
↓ 2 callersFunctionCyan
(msg interface{}, styles ...string)
color/color.go:333
↓ 2 callersMethodDebug
(i ...interface{})
log/log.go:152
↓ 2 callersMethodDebugj
(j JSON)
log/log.go:160
↓ 2 callersMethodDisable
Disable disables the colors and styles.
color/color.go:152
↓ 2 callersMethodEnable
Enable enables the colors and styles.
color/color.go:157
↓ 2 callersMethodFatal
(i ...interface{})
log/log.go:200
↓ 2 callersMethodFormatBinary
FormatBinary formats bytes integer to human readable string according to IEC 60027. For example, 31323 bytes will return 30.59KB.
bytes/bytes.go:55
↓ 2 callersMethodGreen
(msg interface{}, styles ...string)
color/color.go:184
↓ 2 callersMethodInfoj
(j JSON)
log/log.go:172
↓ 2 callersMethodLevel
()
log/log.go:113
↓ 2 callersFunctionNew
()
random/random.go:32
↓ 2 callersFunctionNew
New creates a Color instance.
color/color.go:132
↓ 2 callersMethodPrint
(i ...interface{})
log/log.go:140
↓ 2 callersMethodPrintf
(format string, args ...interface{})
log/log.go:144
↓ 2 callersMethodSetOutput
SetOutput sets the output.
color/color.go:144
↓ 2 callersMethodWarn
(i ...interface{})
log/log.go:176
↓ 2 callersMethodWarnf
(format string, args ...interface{})
log/log.go:180
↓ 2 callersFunctionYellow
(msg interface{}, styles ...string)
color/color.go:321
↓ 2 callersFunctionloggerFatalTest
(t *testing.T, env string, contains string)
log/log_test.go:78
↓ 2 callersMethodnewTemplate
(format string)
log/log.go:91
↓ 2 callersFunctiontest
(l *Logger, t *testing.T)
log/log_test.go:13
↓ 2 callersMethodwriteFile
(f *File, disposition string)
email/email.go:83
↓ 2 callersMethodwriteText
(content string, contentType string)
email/email.go:74
↓ 1 callersFunctionBlack
(msg interface{}, styles ...string)
color/color.go:309
↓ 1 callersMethodBlack
(msg interface{}, styles ...string)
color/color.go:176
↓ 1 callersFunctionBlackBg
(msg interface{}, styles ...string)
color/color.go:345
↓ 1 callersMethodBlackBg
(msg interface{}, styles ...string)
color/color.go:212
↓ 1 callersFunctionBlueBg
(msg interface{}, styles ...string)
color/color.go:361
↓ 1 callersMethodBlueBg
(msg interface{}, styles ...string)
color/color.go:228
↓ 1 callersFunctionBold
(msg interface{}, styles ...string)
color/color.go:381
↓ 1 callersMethodBold
(msg interface{}, styles ...string)
color/color.go:248
↓ 1 callersMethodCyan
(msg interface{}, styles ...string)
color/color.go:200
↓ 1 callersFunctionCyanBg
(msg interface{}, styles ...string)
color/color.go:369
↓ 1 callersMethodCyanBg
(msg interface{}, styles ...string)
color/color.go:236
↓ 1 callersFunctionDim
(msg interface{}, styles ...string)
color/color.go:385
↓ 1 callersMethodDim
(msg interface{}, styles ...string)
color/color.go:252
↓ 1 callersFunctionDisable
()
color/color.go:286
↓ 1 callersFunctionEnable
()
color/color.go:290
↓ 1 callersMethodEnableColor
()
log/log.go:100
↓ 1 callersMethodErrorj
(j JSON)
log/log.go:196
↓ 1 callersMethodFatalj
(j JSON)
log/log.go:210
↓ 1 callersMethodFormatDecimal
FormatDecimal formats bytes integer to human readable string according to SI international system of units. For example, 31323 bytes will return 31.32
bytes/bytes.go:89
↓ 1 callersFunctionGreenBg
(msg interface{}, styles ...string)
color/color.go:353
↓ 1 callersMethodGreenBg
(msg interface{}, styles ...string)
color/color.go:220
↓ 1 callersFunctionGrey
(msg interface{}, styles ...string)
color/color.go:341
↓ 1 callersMethodGrey
(msg interface{}, styles ...string)
color/color.go:208
↓ 1 callersFunctionHidden
(msg interface{}, styles ...string)
color/color.go:401
↓ 1 callersMethodHidden
(msg interface{}, styles ...string)
color/color.go:268
↓ 1 callersFunctionInverse
(msg interface{}, styles ...string)
color/color.go:397
↓ 1 callersMethodInverse
(msg interface{}, styles ...string)
color/color.go:264
↓ 1 callersFunctionItalic
(msg interface{}, styles ...string)
color/color.go:389
↓ 1 callersMethodItalic
(msg interface{}, styles ...string)
color/color.go:256
↓ 1 callersFunctionMagenta
(msg interface{}, styles ...string)
color/color.go:329
↓ 1 callersMethodMagenta
(msg interface{}, styles ...string)
color/color.go:196
↓ 1 callersFunctionMagentaBg
(msg interface{}, styles ...string)
color/color.go:365
↓ 1 callersMethodMagentaBg
(msg interface{}, styles ...string)
color/color.go:232
↓ 1 callersFunctionNew
New creates a Bytes instance.
bytes/bytes.go:43
↓ 1 callersMethodOutput
()
log/log.go:121
↓ 1 callersMethodPanic
(i ...interface{})
log/log.go:215
↓ 1 callersMethodPanicf
(format string, args ...interface{})
log/log.go:221
↓ 1 callersMethodPanicj
(j JSON)
log/log.go:227
↓ 1 callersMethodParse
Parse parses human readable bytes string to bytes integer. For example, 6GiB (6Gi is also valid) will return 6442450944, and 6GB (6G is also valid) wi
bytes/bytes.go:124
↓ 1 callersMethodParseBinary
ParseBinary parses human readable bytes string to bytes integer. For example, 6GiB (6Gi is also valid) will return 6442450944.
bytes/bytes.go:136
↓ 1 callersMethodParseDecimal
ParseDecimal parses human readable bytes string to bytes integer. For example, 6GB (6G is also valid) will return 6000000000.
bytes/bytes.go:168
↓ 1 callersMethodPrefix
()
log/log.go:105
↓ 1 callersMethodPrint
Print is analogous to `fmt.Print` with termial detection.
color/color.go:162
↓ 1 callersMethodPrintf
Printf is analogous to `fmt.Printf` with termial detection.
color/color.go:172
next →1–100 of 185, ranked by callers