go

让零值有意义的好方法

英文: A good way to make zero value meaningful 问题 我有一个结构体,其中包含一个int16,表示切片中索引的偏移量。这个值有两种状态:1. 偏移量无效;2....