commit | 8f68d5e55b7f124b2c5f6deae10f9c416d2944e8 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Fri Sep 30 22:40:04 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Sun Oct 02 00:36:12 2022 +0000 |
tree | fe7497b8902ba66a3493a3bf9e4a762a45812e3e | |
parent | ec3f01382ef9858d8198a179d85a6913d97fa86f [diff] |
slog: rewrite commonHandler again Remove the appender interface and use a bool instead to distinguish between JSON and text mode. Thanks to Alan Donovan for advocating for this simplification. Change-Id: I32b52fab9c8d5cb42608656b30af334ad42cf829 Reviewed-on: https://go-review.googlesource.com/c/exp/+/436760 Reviewed-by: Alan Donovan <adonovan@google.com> Run-TryBot: Jonathan Amsterdam <jba@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.