Closed vendelin8 closed 1 year ago
https://go.dev/play/p/Uu5xmbWdvDY
The workaround to this would be to change line 11 to:
sTmp = string(s) ssPtr[i] = &sTmp
But this gives unnecessary conversion (unconvert)
unnecessary conversion (unconvert)
Is it possible to use the workaround of changing line 11 to this instead?
s := s ssPtr[i] := &s
Does that avoid unnecessary conversion (unconvert)?
Yes, thank you. Works fine.
https://go.dev/play/p/Uu5xmbWdvDY
The workaround to this would be to change line 11 to:
But this gives
unnecessary conversion (unconvert)