reflect: no efficient way to append to, or grow, a slice #44870
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
This is based on https://groups.google.com/g/golang-nuts/c/S2gBW3BV4QU/m/mSPh2_FzBgAJ :
The reflect package has no efficient way to append to a slice represented as a
reflect.Value
. This is available in the reflect2 package: https://pkg.go.dev/github.com/modern-go/reflect2#UnsafeSliceType.Append. The reflect2 package also has a method to grow a slice to a new size: https://pkg.go.dev/github.com/modern-go/reflect2#UnsafeSliceType.Grow.The text was updated successfully, but these errors were encountered: