commit | 29b388652f28d735ad4562391373d421a1d1a5bc | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Dec 29 09:56:40 2022 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Dec 29 18:53:57 2022 +0000 |
tree | bcf8881af0258fbd5d17a7ba59db46020565431e | |
parent | 1b447090c38c11499ba04220f069c4421b188685 [diff] |
slog: interpret call depth consistently Adopt the convention that a call depth of 1 means the caller of the function with the calldepth arg. Fix NewRecord, which documented this but didn't implement it correctly. Change-Id: Ic62e0ed0d0408fdfed7233978021db2f82c888e7 Reviewed-on: https://go-review.googlesource.com/c/exp/+/459644 Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@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.