gpt4 book ai didi

go - Gin-Gonic v1.4.0 : ctx. FullPath() 缺失

转载 作者:行者123 更新时间:2023-12-01 22:17:25 25 4
gpt4 key购买 nike

在之前版本的 Gin 中,我使用的是 ctx.FullPath()将跟踪指标记录到 Stackdriver 的函数。较新的 1.4.0 版本似乎缺少此功能。我有什么替代选择?

最佳答案

v1.4.0 没有 fullPath ,是后来添加的。您可以将稍后提交添加到您的 Go 模块。将提交添加到 fullPath添加,使用:

go get github.com/gin-gonic/gin@35e33d3638f9b5a1246dd9c72a99740f5ad4b43b`

关于go - Gin-Gonic v1.4.0 : ctx. FullPath() 缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58743609/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com