From: Sergey Matveev Date: Sun, 28 Sep 2025 08:40:53 +0000 (+0300) Subject: Go formatting X-Git-Tag: v8.13.0^2~4 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=55b9ec39462a6d2e1dcae44ed6b4f16889b7c7c6;p=nncp.git Go formatting --- diff --git a/src/log.go b/src/log.go index 8d99446..94309a6 100644 --- a/src/log.go +++ b/src/log.go @@ -47,7 +47,7 @@ func (les LEs) Rec() string { panic(err) } _, err = w.WriteFields(recfile.Field{ - F: "When", + F: "When", V: time.Now().UTC().Format(time.RFC3339Nano), }) if err != nil { @@ -57,12 +57,12 @@ func (les LEs) Rec() string { switch v := le.V.(type) { case int, int8, uint8, int64, uint64: _, err = w.WriteFields(recfile.Field{ - F: le.K, + F: le.K, V: fmt.Sprintf("%d", v), }) case bool: _, err = w.WriteFields(recfile.Field{ - F: le.K, + F: le.K, V: fmt.Sprintf("%v", v), }) case []string: @@ -71,7 +71,7 @@ func (les LEs) Rec() string { } default: _, err = w.WriteFields(recfile.Field{ - F: le.K, + F: le.K, V: fmt.Sprintf("%s", v), }) }