关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。
想改进这个问题?将问题更新为 on-topic对于堆栈溢出。
1年前关闭。
Improve this question
https://github.com/google/codesearch/blob/master/index/regexp_test.goregexp/syntax
在上面的 go 文件中导入。但 codesearch 还包含一个 regexp 目录。是 regexp/syntax
来自 Go 系统还是来自这个本地目录?谢谢。
最佳答案
regexp/syntax
是标准库中的一个包,源代码可以在这里找到:https://github.com/golang/go/tree/master/src
另见文档:http://godoc.org/regexp/syntax
(还有新网站上的文档 https://pkg.go.dev/regexp/syntax?tab=doc )
如果你想在你的机器上找到它:
$ go env
# find GOROOT and open $GOROOT/src
关于go - 代码搜索中的正则表达式/语法在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62284660/