后端开发 Go 语言中基于 iota 枚举类型的 switch 正确用法详解 本文详解 Go 中使用 iota 定义的枚举类型(如 NodeType)在 switch 语句中的标准写法,纠 […]...
后端开发 Golang iota 配合 iota * 1000 做业务错误码体系 用 iota * 1000 可清晰划分模块错误码段,如 UserErrBase=0、OrderErrBase= […]...