随笔分类 - lqz分类三
摘要:一 上传文件 1.1 上传单个文件 multipart/form-data格式用于文件上传 gin文件上传与原生的net/http方法类似,不同在于gin把原生的request封装到c.Request中 package main import ( "github.com/gin-gonic/gin"
阅读全文
摘要:一 路由的基本使用 gin 框架中采用的路由库是基于httprouter做的 地址为:https://github.com/julienschmidt/httprouter 1.1 基本路由 package main import ( "github.com/gin-gonic/gin" "net/
阅读全文
浙公网安备 33010602011771号