Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/rs/zerolog
/ MarshalZerologObject
Method
MarshalZerologObject
log_example_test.go:213–217 ·
view source on GitHub ↗
(e *zerolog.Event)
Source
from the content-addressed store, hash-verified
211
}
212
213
func
(u User) MarshalZerologObject(e *zerolog.Event) {
214
e.Str(
"name"
, u.Name).
215
Int(
"age"
, u.Age).
216
Time(
"created"
, u.Created)
217
}
218
219
type
Price
struct
{
220
val uint64
Callers
nothing calls this directly
Calls
3
Time
Method · 0.45
Int
Method · 0.45
Str
Method · 0.45
Tested by
no test coverage detected