diff --git a/doc/go1.18.html b/doc/go1.18.html index 4d77f14d53..7e11f73820 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -90,6 +90,39 @@ Do not send CLs removing the interior tags from such phrases. +

+ 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. +

+
golang.org/x/exp/constraints
+
+

+ Constraints that are useful for generic code, such as + constraints.Ordered. +

+
+ +
golang.org/x/exp/slices
+
+

+ A collection of generic functions that operate on slices of + any element type. +

+
+ +
golang.org/x/exp/maps
+
+

+ A collection of generic functions that operate on maps of + any key or element type. +

+
+
+

+

The current generics implementation has the following limitations: