yee icon indicating copy to clipboard operation
yee copied to clipboard

🦄 Web frameworks for Go, easier & faster.

Results 5 yee issues
Sort by recently updated
recently updated
newest added

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0. Commits c48da13 http2: fix TestServerContinuationFlood flakes 762b58d http2: fix tipos in comment ba87210 http2: close connections when receiving too many headers ebc8168 all: fix...

dependencies

Bumps google.golang.org/protobuf from 1.28.0 to 1.33.0. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/protobuf&package-manager=go_modules&previous-version=1.28.0&new-version=1.33.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands...

dependencies

main.go ``` package main import ( "net/http" "fmt" "github.com/cookieY/yee" _ "github.com/cookieY/yee/middleware" _ "github.com/cookieY/yee/logger" ) func main(){ y := yee.New() y.Use(Logger()) y.Static("/assets", "dist/assets") y.GET("/", func(c yee.Context) (err error) { fmt.Println("request") return...

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.38.0. Commits e1fcd82 html: properly handle trailing solidus in unquoted attribute value in foreign... ebed060 internal/http3: fix build of tests with GOEXPERIMENT=nosynctest 1f1fa29 publicsuffix: regenerate...

dependencies
go

场景: 使用redis缓存用户的请求结果,return c.JSON(http.StatusOK, commom.SuccessPayload(data)) 做法: 在router 层面使用 redis 缓存的handlerFunc, 伪代码 r.GET("/redis", commom.CacheBefore(), db2.RedisTest, commom.CacheAfter()) 解释: 根据用户的请求参数,请求uri, 做md5计算得到 key CacheBefore(), 判断是否有key 缓存,有则返回, 无则注入request param, redis_cache=key CacheAfter(),将db2.RedisTest 返回的Response 结果 存入redis 修改: 源码中...