dongyied24121 2018-04-01 01:00
浏览 52
已采纳

Golang const不安全。

Don't understand why I can do

const OK = uint64(0)

const OK = int(unsafe.Sizeof(uint64(0)))

but not this?

const NOK = binary.Size(uint64(0))
  • 写回答

1条回答 默认 最新

报告相同问题?