Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/labstack/gommon
/ functions
Functions
185 in github.com/labstack/gommon
⨍
Functions
185
◇
Types & classes
10
↓ 64 callers
Function
Parse
Parse wraps global Bytes's Parse function.
bytes/bytes.go:214
↓ 34 callers
Function
Println
Println is analogous to `fmt.Println` with termial detection.
color/color.go:300
↓ 25 callers
Function
outer
(n string)
color/color.go:105
↓ 22 callers
Method
String
(length uint8, charsets ...string)
random/random.go:45
↓ 15 callers
Method
log
(level Lvl, message string, jsonBody bool)
log/log.go:360
↓ 13 callers
Method
writeHeader
(key, value string)
email/email.go:61
↓ 10 callers
Function
Format
Format wraps global Bytes's Format function.
bytes/bytes.go:199
↓ 9 callers
Function
New
(prefix string)
log/log.go:60
↓ 9 callers
Method
SetOutput
(w io.Writer)
log/log.go:125
↓ 8 callers
Function
FormatDecimal
FormatDecimal wraps global Bytes's FormatDecimal function.
bytes/bytes.go:209
↓ 7 callers
Method
logJSON
(level Lvl, j JSON)
log/log.go:352
↓ 6 callers
Method
SetLevel
(level Lvl)
log/log.go:117
↓ 5 callers
Method
Error
(i ...interface{})
log/log.go:188
↓ 5 callers
Method
Errorf
(format string, args ...interface{})
log/log.go:192
↓ 5 callers
Method
Reset
(msg interface{}, styles ...string)
color/color.go:244
↓ 4 callers
Method
Debugf
(format string, args ...interface{})
log/log.go:156
↓ 4 callers
Method
Format
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 callers
Method
Info
(i ...interface{})
log/log.go:164
↓ 4 callers
Method
SetHeader
(h string)
log/log.go:136
↓ 4 callers
Function
String
(length uint8, charsets ...string)
random/random.go:89
↓ 4 callers
Method
dial
()
email/email.go:181
↓ 3 callers
Method
DisableColor
()
log/log.go:95
↓ 3 callers
Method
Fatalf
(format string, args ...interface{})
log/log.go:205
↓ 3 callers
Function
Green
(msg interface{}, styles ...string)
color/color.go:317
↓ 3 callers
Method
Infof
(format string, args ...interface{})
log/log.go:168
↓ 3 callers
Function
New
(smtpAddress string)
email/email.go:54
↓ 3 callers
Function
Red
(msg interface{}, styles ...string)
color/color.go:313
↓ 3 callers
Method
Red
(msg interface{}, styles ...string)
color/color.go:180
↓ 3 callers
Method
Yellow
(msg interface{}, styles ...string)
color/color.go:188
↓ 3 callers
Method
initLevels
()
log/log.go:78
↓ 3 callers
Method
writeBoundary
()
email/email.go:68
↓ 2 callers
Function
Blue
(msg interface{}, styles ...string)
color/color.go:325
↓ 2 callers
Method
Blue
(msg interface{}, styles ...string)
color/color.go:192
↓ 2 callers
Function
Cyan
(msg interface{}, styles ...string)
color/color.go:333
↓ 2 callers
Method
Debug
(i ...interface{})
log/log.go:152
↓ 2 callers
Method
Debugj
(j JSON)
log/log.go:160
↓ 2 callers
Method
Disable
Disable disables the colors and styles.
color/color.go:152
↓ 2 callers
Method
Enable
Enable enables the colors and styles.
color/color.go:157
↓ 2 callers
Method
Fatal
(i ...interface{})
log/log.go:200
↓ 2 callers
Method
FormatBinary
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 callers
Method
Green
(msg interface{}, styles ...string)
color/color.go:184
↓ 2 callers
Method
Infoj
(j JSON)
log/log.go:172
↓ 2 callers
Method
Level
()
log/log.go:113
↓ 2 callers
Function
New
()
random/random.go:32
↓ 2 callers
Function
New
New creates a Color instance.
color/color.go:132
↓ 2 callers
Method
Print
(i ...interface{})
log/log.go:140
↓ 2 callers
Method
Printf
(format string, args ...interface{})
log/log.go:144
↓ 2 callers
Method
SetOutput
SetOutput sets the output.
color/color.go:144
↓ 2 callers
Method
Warn
(i ...interface{})
log/log.go:176
↓ 2 callers
Method
Warnf
(format string, args ...interface{})
log/log.go:180
↓ 2 callers
Function
Yellow
(msg interface{}, styles ...string)
color/color.go:321
↓ 2 callers
Function
loggerFatalTest
(t *testing.T, env string, contains string)
log/log_test.go:78
↓ 2 callers
Method
newTemplate
(format string)
log/log.go:91
↓ 2 callers
Function
test
(l *Logger, t *testing.T)
log/log_test.go:13
↓ 2 callers
Method
writeFile
(f *File, disposition string)
email/email.go:83
↓ 2 callers
Method
writeText
(content string, contentType string)
email/email.go:74
↓ 1 callers
Function
Black
(msg interface{}, styles ...string)
color/color.go:309
↓ 1 callers
Method
Black
(msg interface{}, styles ...string)
color/color.go:176
↓ 1 callers
Function
BlackBg
(msg interface{}, styles ...string)
color/color.go:345
↓ 1 callers
Method
BlackBg
(msg interface{}, styles ...string)
color/color.go:212
↓ 1 callers
Function
BlueBg
(msg interface{}, styles ...string)
color/color.go:361
↓ 1 callers
Method
BlueBg
(msg interface{}, styles ...string)
color/color.go:228
↓ 1 callers
Function
Bold
(msg interface{}, styles ...string)
color/color.go:381
↓ 1 callers
Method
Bold
(msg interface{}, styles ...string)
color/color.go:248
↓ 1 callers
Method
Cyan
(msg interface{}, styles ...string)
color/color.go:200
↓ 1 callers
Function
CyanBg
(msg interface{}, styles ...string)
color/color.go:369
↓ 1 callers
Method
CyanBg
(msg interface{}, styles ...string)
color/color.go:236
↓ 1 callers
Function
Dim
(msg interface{}, styles ...string)
color/color.go:385
↓ 1 callers
Method
Dim
(msg interface{}, styles ...string)
color/color.go:252
↓ 1 callers
Function
Disable
()
color/color.go:286
↓ 1 callers
Function
Enable
()
color/color.go:290
↓ 1 callers
Method
EnableColor
()
log/log.go:100
↓ 1 callers
Method
Errorj
(j JSON)
log/log.go:196
↓ 1 callers
Method
Fatalj
(j JSON)
log/log.go:210
↓ 1 callers
Method
FormatDecimal
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 callers
Function
GreenBg
(msg interface{}, styles ...string)
color/color.go:353
↓ 1 callers
Method
GreenBg
(msg interface{}, styles ...string)
color/color.go:220
↓ 1 callers
Function
Grey
(msg interface{}, styles ...string)
color/color.go:341
↓ 1 callers
Method
Grey
(msg interface{}, styles ...string)
color/color.go:208
↓ 1 callers
Function
Hidden
(msg interface{}, styles ...string)
color/color.go:401
↓ 1 callers
Method
Hidden
(msg interface{}, styles ...string)
color/color.go:268
↓ 1 callers
Function
Inverse
(msg interface{}, styles ...string)
color/color.go:397
↓ 1 callers
Method
Inverse
(msg interface{}, styles ...string)
color/color.go:264
↓ 1 callers
Function
Italic
(msg interface{}, styles ...string)
color/color.go:389
↓ 1 callers
Method
Italic
(msg interface{}, styles ...string)
color/color.go:256
↓ 1 callers
Function
Magenta
(msg interface{}, styles ...string)
color/color.go:329
↓ 1 callers
Method
Magenta
(msg interface{}, styles ...string)
color/color.go:196
↓ 1 callers
Function
MagentaBg
(msg interface{}, styles ...string)
color/color.go:365
↓ 1 callers
Method
MagentaBg
(msg interface{}, styles ...string)
color/color.go:232
↓ 1 callers
Function
New
New creates a Bytes instance.
bytes/bytes.go:43
↓ 1 callers
Method
Output
()
log/log.go:121
↓ 1 callers
Method
Panic
(i ...interface{})
log/log.go:215
↓ 1 callers
Method
Panicf
(format string, args ...interface{})
log/log.go:221
↓ 1 callers
Method
Panicj
(j JSON)
log/log.go:227
↓ 1 callers
Method
Parse
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 callers
Method
ParseBinary
ParseBinary parses human readable bytes string to bytes integer. For example, 6GiB (6Gi is also valid) will return 6442450944.
bytes/bytes.go:136
↓ 1 callers
Method
ParseDecimal
ParseDecimal parses human readable bytes string to bytes integer. For example, 6GB (6G is also valid) will return 6000000000.
bytes/bytes.go:168
↓ 1 callers
Method
Prefix
()
log/log.go:105
↓ 1 callers
Method
Print
Print is analogous to `fmt.Print` with termial detection.
color/color.go:162
↓ 1 callers
Method
Printf
Printf is analogous to `fmt.Printf` with termial detection.
color/color.go:172
next →
1–100 of 185, ranked by callers