mirror of https://github.com/golang/go.git
Some of the json tags, especially for constructed structs, had improper json tags (e.g., Range *Range `json:"Range"`, not `json:"range"). These now start with lower-case letters. Also, an optional field which is a struct type could be either F FsType `json:"f,omitempty"`, or F *FsType `json:"f,omitempty". The second is generally better, as zero values should not be sent, but there are many cases where the existing code needs the first, to avoid allocations. That is, if we're sending an empty optional field, there should be a *, but if we're intializing a complicated structure (x.A.B.C.D = true, with B and C optional) existing code wants no *. (These two cases could conflict, and then the existing code would have to be changed.) Fixes golang/go#55099 Change-Id: I947a69322bcddf4c963d34662b72b464b738d17c Reviewed-on: https://go-review.googlesource.com/c/tools/+/431218 Run-TryBot: Peter Weinberger <pjw@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| typescript | ||
| codeactionkind.go | ||
| context.go | ||
| doc.go | ||
| enums.go | ||
| log.go | ||
| protocol.go | ||
| span.go | ||
| tsclient.go | ||
| tsdocument_changes.go | ||
| tsjson.go | ||
| tsprotocol.go | ||
| tsserver.go | ||