commit | 595f219a1f78636dca4b47087b6c8293aaa539c4 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Sun Nov 06 08:17:19 2022 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Wed Nov 09 13:40:17 2022 +0000 |
tree | 525316428185ff96c92364cbdb08697dd26a3365 | |
parent | 5d533826c662bb1d21071e60d6e2e444d672fddb [diff] |
slog: add LevelHandler example Add an example that defines LevelHandler, a Handler wraps another Handler and enforces a minimum level. Change-Id: I009b9f39d0b873ed1067e0fa90c838e8afc36f9e Reviewed-on: https://go-review.googlesource.com/c/exp/+/447965 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.