Ai
1 Star 1 Fork 0

fast_api/api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
include.go 378 Bytes
一键复制 编辑 原始数据 按行查看 历史
t.io 提交于 2023-03-08 18:31 +08:00 . Optimize code
package dwarf
import (
"debug/gosym"
"regexp"
)
var includeRegex = []string{
"^gitee.com/fast_api/.+$",
}
func isInclude(pkg string) bool {
sym := gosym.Sym{
Name: pkg,
}
pkg = sym.PackageName()
for _, regex := range includeRegex {
match, err := regexp.MatchString(regex, pkg)
if err != nil {
panic(err)
}
if match {
return false
}
}
return true
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fast_api/api.git
git@gitee.com:fast_api/api.git
fast_api
api
api
v0.1.0

搜索帮助