]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/test2json: document time.Time JSON format
authorRuss Cox <rsc@golang.org>
Fri, 10 Nov 2017 17:58:31 +0000 (12:58 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 10 Nov 2017 18:17:38 +0000 (18:17 +0000)
This is already documented in the time.Time package
but people might not look there.

Followup to CL 76872, which I submitted accidentally
(Gerrit has placed the Submit button next to Reply again.)

Change-Id: Ibfd6a4da241982d591a8698282a0c15fe9f2e775
Reviewed-on: https://go-review.googlesource.com/77010
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/test2json/main.go

index 0c8193760fd925c9805a2864f21dd3c03546f262..3d7c5601a3e5ad5b2129d4f66b05584708f575cb 100644 (file)
@@ -24,7 +24,7 @@
 // corresponding to the Go struct:
 //
 //     type TestEvent struct {
-//             Time    time.Time
+//             Time    time.Time // encodes as an RFC3339-format string
 //             Event   string
 //             Package string
 //             Test    string