commit | b6b77bae5cc53cbfb30d77df92c6c80f79eb174f | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Wed Oct 05 10:24:39 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Oct 11 18:43:54 2022 +0000 |
tree | 9da54558ca362ccb3b80be0bdae332bd6700f828 | |
parent | 9ed153238dd9164477a8c529eb5fb515da8552d8 [diff] |
slog: Record methods take value receivers Change most Record methods to take value receivers, to provide a consistent view of Record as a value type. AddAttrs' receiver is modified so it must remain a pointer. This change did not significantly affect benchmarks. Change-Id: I14763a5043ce8dcd537fa71d28ccc01508b7b35b Reviewed-on: https://go-review.googlesource.com/c/exp/+/439056 Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.