张金富
张金富
close channel后 for range 会自动退出的
token超时的话 jwt.ParseWithClaims会直接返回错误 类似于 token is expired by 14m11s
log.go文件所有的logger.Println(v)应改为logger.Println(v...) 再就是log文件名一启动就固定了 改为文件名随着时间变化更好
方案一是优雅的重启 方案二是优雅的关闭 并非替代关系
这一节难度大了不止一点半点 建议分两段 放后面讲
将ck的字段改为nullable类型 依然报错 ERROR: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Nullable`1[System.Int32]'.
山东德尔智能数码股份有限公司/通用抄表服务端 使用了gf的tcp组件、websocket组件和大量的功能模块
You can modify the source code to satisfy yourself. It's easy.
sit back and wait