Golang unsafe.SizeOf() says any string takes 16 bytes, but how?

前端 未结 0 1283
慢半拍i
慢半拍i 2021-01-25 09:43

Simply running fmt.Println(unsafe.Sizeof("")) prints 16. Changing the content of the string doesn\'t affect the outcome.

Can someone explain how wh

相关标签:
回答
  • 消灭零回复
提交回复
热议问题