commit | 672c09215c38031939e0a6f64323c517c4f674ea | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue Jan 24 09:09:42 2023 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Wed Jan 25 21:30:27 2023 +0000 |
tree | 057eec1e9649e16481a3405cbbe5c7ed58007dae | |
parent | d38c7dcee8745e076b46ec56ebe381cdaea996e5 [diff] |
slog: export Record.PC NewRecord now takes a pc instead of a call depth: callers must obtain the pc themselves. This makes it possible to copy a Record without copying its attributes. Remove Record.SourceLine; users can obtain source information by passing the PC to runtime.CallersFrames. Change-Id: I3e63ffefdbdc317cb3b6e559dd8ba88d576a47b8 Reviewed-on: https://go-review.googlesource.com/c/exp/+/463257 Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
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.