commit | bddcdfccc6d82d378bdf2e3384cdd64faca9ee43 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Mon Oct 03 15:51:27 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Oct 11 10:02:12 2022 +0000 |
tree | 0c5e2e98010cbc94d568363e8069c2be61f59273 | |
parent | 9d86aade8c66fc35f8df3fce2112d0f2d6e1b4b8 [diff] |
slog: defaultHandler outputs Handler.With attrs The defaultHandler was ignoring Attrs provided with Handler.With. Now it outputs them. Also, improve testing of defaultHandler to catch bugs like this. Change-Id: Iaf6675e83e250be9cefc6c4c522c7868398c2465 Reviewed-on: https://go-review.googlesource.com/c/exp/+/437960 Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
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.