commit | 9d86aade8c66fc35f8df3fce2112d0f2d6e1b4b8 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Mon Oct 03 14:02:04 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Oct 11 10:01:54 2022 +0000 |
tree | 22259463916b4f90fd63673b581f30a64e32e94b | |
parent | 7754359823b2447426cd70cb80d3ed9b5ede3ed7 [diff] |
slog: add Group Values Introduce a kind of Value that is a tagged group of other Values, represented by a []Attr. Now a type can provide a LogValue method that returns multiple Attrs, so it can represent a loggable version of itself to slog.Handlers in a general way. This CL just adds the implementation to Value. Subsequent CLs will provide Handler implementations and tests. Change-Id: Ib0204daf146f545bd20abe4e58664899c8ef45db Reviewed-on: https://go-review.googlesource.com/c/exp/+/437959 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.