typeparams: simplify now that minimum required Go is 1.25.0

This module has a go directive set to 1.25.0. Some of the files have
build constraints that will therefore never be satisfied, such as the
'//go:build !go1.18' constraint in the typeparams_go117.go file.

Simplify the code accordingly. This includes deleting TestAPIConsistency
because it has outlived its purpose. It's no longer possible to make the
API of this package at Go 1.17 inconsistent with that of Go 1.18+ since
this package cannot be compiled with Go 1.17 (not in any supported way).
Its Go 1.18+ API may still evolve in a backwards compatible way via the
Go proposal process.

For golang/go#50447.
For golang/go#79683.

Change-Id: I7f9923625cfe54ca2031e996ffa2cc7e26d83eea
Reviewed-on: https://go-review.googlesource.com/c/exp/+/783440
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
6 files changed
tree: 0fb2a9e677ceae3c0defb8c44f818bbed65349a7
  1. apidiff/
  2. cmd/
  3. constraints/
  4. ebnf/
  5. ebnflint/
  6. errors/
  7. event/
  8. inotify/
  9. io/
  10. jsonrpc2/
  11. maps/
  12. mmap/
  13. rand/
  14. shiny/
  15. shootout/
  16. slices/
  17. slog/
  18. stats/
  19. sumdb/
  20. trace/
  21. typeparams/
  22. utf8string/
  23. .gitattributes
  24. .gitignore
  25. codereview.cfg
  26. CONTRIBUTING.md
  27. go.mod
  28. go.sum
  29. LICENSE
  30. PATENTS
  31. README.md
README.md

exp

PkgGoDev

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.