From c2bb350d80fa6116094f819f48d83f1f34993295 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
- TODO: https://go.dev/issue/55002: add Value.Clear -
- -- TODO: https://go.dev/issue/56906: deprecate SliceHeader and StringHeader -
- -
- TODO: https://go.dev/cl/452762: reflect: deprecate SliceHeader and StringHeader; modified api/next/56906.txt
+ The new Value
+ method Value.Clear
+ clears the contents of a map or zeros the contents of a slice.
+ This corresponds to the new clear
built-in
+ added to the language.
+
+ The SliceHeader
+ and StringHeader
+ types are now deprecated. In new code
+ prefer unsafe.Slice
,
+ unsafe.SliceData
,
+ unsafe.String
,
+ or unsafe.StringData
.