commit | 44a13b063f3eef9743622d40c28e664850fd9d37 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Feb 02 11:31:58 2023 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Fri Mar 03 21:50:20 2023 +0000 |
tree | ef0e55c21df5eba9a8ef197e3a3a00ed82e63785 | |
parent | 13299074b82bbfc1985f4f92a42c85e6e89f179b [diff] |
slog: define a removeTime function for examples Since examples with output need to be deterministic, they remove the time attribute with a ReplaceAttr function. Define a removeTime function at top level so examples can use it. Change-Id: Id759a596deee49bbf66b1c6a3079f19805ae6ab5 Reviewed-on: https://go-review.googlesource.com/c/exp/+/464855 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.