Golang typecasting structs with same underlying types

前端 未结 0 429
被撕碎了的回忆
被撕碎了的回忆 2020-12-19 15:32

For basic types we can easily cast the types if their underlying types are same .But the fields inside struct with same memory layout cannot be easily cast from one to anoth

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