随笔分类 -  lqz分类三

摘要:一 上传文件 1.1 上传单个文件 multipart/form-data格式用于文件上传 gin文件上传与原生的net/http方法类似,不同在于gin把原生的request封装到c.Request中 package main import ( "github.com/gin-gonic/gin" 阅读全文
posted @ 2022-09-13 22:07 Python编程开发 阅读(220) 评论(5) 推荐(3)
摘要:一 路由的基本使用 gin 框架中采用的路由库是基于httprouter做的 地址为:https://github.com/julienschmidt/httprouter 1.1 基本路由 package main import ( "github.com/gin-gonic/gin" "net/ 阅读全文
posted @ 2022-09-13 22:06 Python编程开发 阅读(160) 评论(7) 推荐(0)