]> Cypherpunks repositories - gostls13.git/commit
unique: add unique package and implement Make/Handle
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 4 Apr 2024 04:51:24 +0000 (04:51 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 22 Apr 2024 18:14:07 +0000 (18:14 +0000)
commita088e230d4e7892b15851babe161bbd1766738a1
treeb42bda131142e51a16e6327bb505849a4e60d474
parent654c3368e53c923acff5fd5a1eaf4175bb6834d6
unique: add unique package and implement Make/Handle

This change adds the unique package for canonicalizing values, as
described by the proposal in #62483.

Fixes #62483.

Change-Id: I1dc3d34ec12351cb4dc3838a8ea29a5368d59e99
Reviewed-on: https://go-review.googlesource.com/c/go/+/574355
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ingo Oeser <nightlyone@googlemail.com>
Reviewed-by: David Chase <drchase@google.com>
12 files changed:
api/next/62483.txt [new file with mode: 0644]
doc/next/6-stdlib/2-unique.md [new file with mode: 0644]
doc/next/6-stdlib/99-minor/unique/62483.md [new file with mode: 0644]
src/go/build/deps_test.go
src/go/doc/comment/std.go
src/runtime/mgc.go
src/unique/clone.go [new file with mode: 0644]
src/unique/clone_test.go [new file with mode: 0644]
src/unique/doc.go [new file with mode: 0644]
src/unique/handle.go [new file with mode: 0644]
src/unique/handle_bench_test.go [new file with mode: 0644]
src/unique/handle_test.go [new file with mode: 0644]