MCPcopy
hub / github.com/gofiber/fiber / loadTimestamp

Function loadTimestamp

middleware/logger/logger.go:15–21  ·  view source on GitHub ↗
(value *atomic.Value)

Source from the content-addressed store, hash-verified

13)
14
15func loadTimestamp(value *atomic.Value) string {
16 if timestamp, ok := value.Load().(string); ok {
17 return timestamp
18 }
19
20 return ""
21}
22
23// defaultErrPadding is the initial column width used by the default access-log
24// formatter to align the request path against the optional error suffix. The

Callers 2

Test_loadTimestamp_EmptyFunction · 0.85
NewFunction · 0.85

Calls 1

LoadMethod · 0.65

Tested by 1

Test_loadTimestamp_EmptyFunction · 0.68