随笔分类 -  Gin

摘要:2020.12.30 问题总结 中间件 context.Next() 源码注释: // Next should be used only inside middleware. // It executes the pending handlers in the chain inside the ca 阅读全文
posted @ 2020-12-31 16:41 L1ng14 阅读(271) 评论(0) 推荐(0)
摘要:学习 Gin 问题总结 2020.12.29 数据绑定与解析 BindXXX,ShouldBindXXX和ShouldBindWith区别 BindXXX 会自动返回信息,输入无效时,在header写入400。 ShouldBindXXX 返回消息,输入无效时,不会在header写入400状态码,这 阅读全文
posted @ 2020-12-29 17:48 L1ng14 阅读(1016) 评论(0) 推荐(0)