最近要用 GIN 写 API ,但是对它的生态不是很了解,希望有个项目实战的视频可以快速过一遍,用到了那些东西,怎么用的
1 standchan 2023-09-03 10:48:18 +08:00 https://github.com/gin-gonic/examples 有看 examples 的习惯会好一点 |
2 ryan961 2023-09-03 11:18:03 +08:00 其实 gin 就一个 http 路由工具库而已,看视频效率太低了....直接看看官方的 examples ,然后再看看开源库( https://github.com/search?q=gin&type=repositories )就基本会用了,像这个( https://github.com/flipped-aurora/gin-vue-admin/tree/main/server ),看看他怎么使用中间件、获取请求参数、返回数据等等....最多两三个小时就能上手写项目了 |
3 streamrx 2023-09-03 12:23:49 +08:00 via iPhone 看文档就行了 不复杂 |
![]() | 6 nickxudotme 2023-09-03 15:50:53 +08:00 |
![]() | 7 voidmnwzp 2023-09-06 20:53:53 +08:00 via iPhone 撸起袖子干就行 这玩意还需要看视频吗又不是 springboot 这种重量级框架 |
![]() | 8 putyy 2023-09-12 14:31:58 +08:00 |
![]() | 10 qloog 2023-10-21 17:25:12 +08:00 https://github.com/go-eagle/eagle 也是基于 gin 的,可以参考。 |