2025年12月1日

go限流示例

摘要: golang内置了一款限速器golang/x/time/rate, 基于令牌桶限速算法。 package main import ( "github.com/gin-gonic/gin" "golang.org/x/time/rate" ) func RateLimiter() gin.Handle 阅读全文

posted @ 2025-12-01 21:43 dz45693 阅读(6) 评论(0) 推荐(0)

导航