commit | be6415c2b1eac0dbab46f03a0221972936de00b7 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Apr 20 09:15:31 2023 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Apr 20 15:53:38 2023 +0000 |
tree | 2660de4ac9e374c9e3f8d00db48d60d65604ef3f | |
parent | 864b3d6c5c2c5ebc4e14047a4975d8acde58bca6 [diff] |
slog: backport changes from stdlib The standard library version of slog has diverged from this version somewhat; bring them back into sync, as much as possible. Since moving to the standard library, a Handler rule has changed: a Handler should ignore the zero slog.Attr, but not an Attr whose key is empty but whose value is non-zero. Change the check in slogtest to reflect that. Fixes golang/go#59727. Change-Id: Idd2084b84a3faf9b1796051af1578aee6558ed02 Reviewed-on: https://go-review.googlesource.com/c/exp/+/486795 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Jonathan Amsterdam <jba@google.com> 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.