From: Rob Pike Date: Thu, 7 Mar 2019 04:05:43 +0000 (+1100) Subject: doc: add missing paragraph break in Effective Go X-Git-Tag: go1.13beta1~1167 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fd19bc64de61e33537b90a7d7ed489fd83412ced;p=gostls13.git doc: add missing paragraph break in Effective Go A recent edit broke the flow; add a paragraph break when the subject switches from maps to structs. No changes in wording. Change-Id: I5df88ec36b9d81931cfdbc684424440d01ac06d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/165917 Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/effective_go.html b/doc/effective_go.html index b98235931c..7bb60a0786 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1687,6 +1687,8 @@ map[CST:-21600 EST:-18000 MST:-25200 PST:-28800 UTC:0]

For maps, Printf and friends sort the output lexicographically by key. +

+

When printing a struct, the modified format %+v annotates the fields of the structure with their names, and for any value the alternate format %#v prints the value in full Go syntax.