Skip to content

Commit

Permalink
add some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak committed Mar 13, 2023
1 parent 0a9691d commit db59513
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testdata/src/a/a.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ func ok() {
logger := log.Error()
logger.Send()

// FIXME: 多分zerolog.Dict()がreceiver内のをご検知している気がする
// include zerolog.Dict()
log.Info().
Str("foo", "bar").
Dict("dict", zerolog.Dict().
Str("bar", "baz").
Int("n", 1),
).Send()

// FIXME: これ対応するか???
// phiを扱わないといけない
// conditional
logger2 := log.Info()
if err != nil {
logger2 = log.Error()
Expand Down

0 comments on commit db59513

Please sign in to comment.