代码套路 匿名定义结构体,解耦,减少对包的依赖 type Item = struct{ ItemID int64 } 非阻塞读写channel select { case f.wakeup <- struct{}{}: default: } 理解项目: 业务复杂度 高并发