From fa0484640479a26687608706c9f6628eac1174d2 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
+ There are three experimental packages using generics that may be
+ useful.
+ These packages are in x/exp repository; their API is not covered by
+ the Go 1 guarantee and may change as we gain more experience with
+ generics.
+
+ Constraints that are useful for generic code, such as
+
+ A collection of generic functions that operate on slices of
+ any element type.
+
+ A collection of generic functions that operate on maps of
+ any key or element type.
+
+
+golang.org/x/exp/constraints
constraints.Ordered
.
+ golang.org/x/exp/slices
golang.org/x/exp/maps
The current generics implementation has the following limitations: