07 2022 档案

gin demo
摘要:gin demo 演示参数校验 package main import ( "fmt" "io/ioutil" "net/http" "github.com/gin-gonic/gin" // "context" ) type Userinfo struct { Username string `f 阅读全文

posted @ 2022-07-10 22:01 思此狂 阅读(282) 评论(0) 推荐(0) 编辑

context取消任务demo
摘要:一个基于 gin 的demo ,支持 创建任务, 停止(取消)任务 -》基于 context cancle, 查询任务 传递任务id 基于 context value package main import ( "fmt" "math/rand" "strconv" "context" "time" 阅读全文

posted @ 2022-07-10 21:58 思此狂 阅读(138) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示