「Go 框架」深入理解 gin 框中 Context 的 Request 和 Writer 对象

在gin框架中,我们一般通过Context从Request中获取请求参数,通过Context的Writer对象给接口返回响应值。本文带你深入理解为什么能通过这两个对象获取数据并返回响应结果

A person who loves writing, loves novels, and loves life.Seeking objective truth, hoping for world peace, and wishing for a world without wars.
在gin框架中,我们一般通过Context从Request中获取请求参数,通过Context的Writer对象给接口返回响应值。本文带你深入理解为什么能通过这两个对象获取数据并返回响应结果

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow