commit | 0354be287a23d31eb0fd55ac6bcb61d074a0414e | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Sat Jan 28 13:47:36 2023 -0500 |
committer | Gopher Robot <gobot@golang.org> | Tue Apr 18 20:23:29 2023 +0000 |
tree | 264a3640757dfaffeb1944835597c85fbf768188 | |
parent | 10a507213a2916eb81243cb95bcd7f5e70a771e1 [diff] |
slog/slogtest: package for testing slog The slogtest package tests a slog.Handler. It checks that the Handler follows the specification in the Handler documentation, including correct treatment of the WithGroup and WithAttrs methods, and proper handling of special cases like empty attribute keys. Change-Id: I75774ad566f795f5ff1a9b8eab9ed09c35fa720c Reviewed-on: https://go-review.googlesource.com/c/exp/+/469075 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Jonathan Amsterdam <jba@google.com> Auto-Submit: 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.