GOLANG 编译期的`常量折叠`的研究
发现了奇怪的代码:func (m *Child) SizeVT() (n int) {if m nil {return 0}var l int_ lif m.ChildId ! 0 {n 1 protohelpers.SizeOfVarint(uint64(m.ChildId))}l len(m.ChildName)if l > 0 {n 1 l protohelpers.SizeOfVarint(uint64(l))}return n
}这个…
2026/7/2 2:54:16