commit | 133eef4313cb093943b09b9758c0db95d9caaf34 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Apr 20 11:03:08 2023 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Apr 20 15:56:40 2023 +0000 |
tree | 8b8608edbae97c5348319e4a75e2412f9f9bef45 | |
parent | 22ee2bf4c003060356c6387689ac17df3837f257 [diff] |
slog: update value to go 1.20 unsafe functions; remove safe version Bring value.go in line with the standard library version: - Use the new unsafe functions for string and slice data introduced in Go 1.20. - Remove the version of Value that avoids unsafe code. As of this commit, golang.org/x/exp/slog cannot be compiled with Go versions before 1.20. Change-Id: I45218aace8a498e94e90f87a337d3a09cae34318 Reviewed-on: https://go-review.googlesource.com/c/exp/+/486801 Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> 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.