1 Star 0 Fork 0

yjhi / go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
echoutils.go 297 Bytes
一键复制 编辑 原始数据 按行查看 历史
yjhi 提交于 2023-03-26 16:33 . v1.0.17
package echocontroller
import (
"github.com/labstack/echo/v4"
)
// 获取请求参数
func TryGetQueryString(c echo.Context, names ...string) string {
if len(names) == 0 {
return ""
}
for _, name := range names {
v := c.QueryParam(name)
if len(v) > 0 {
return v
}
}
return ""
}
Go
1
https://gitee.com/yjhi/go.git
git@gitee.com:yjhi/go.git
yjhi
go
go
b860ac04d13c

搜索帮助

53164aa7 5694891 3bd8fe86 5694891