2021-11-04
Golang代码规范检查记录● ID rather than Id● indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive),if里如果有return,else多余,else的代码块直接在if后面外部执行即可● context-as-argument: context.Context should be the first parameter o
原创
2021-11-04 12:30:00 ·
327 阅读 ·
0 评论