Skip to content

Latest commit

 

History

History
executable file
·
13 lines (9 loc) · 325 Bytes

README.md

File metadata and controls

executable file
·
13 lines (9 loc) · 325 Bytes

说明

1.1 tracing

  • logrus 自动携带 request id 实现全链路追踪

1.2 中间件

  • gin 中间件自动记录请求的开始与结束时间及打印请求体与 uri
  • hook 的使用

1.3 logrus

  • 初始化(打印格式、输出到文件)

1.4 custom validation and struct-lvl-validation