We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f297c commit 4fa57bfCopy full SHA for 4fa57bf
go/ql/test/library-tests/semmle/go/Types/MethodCount.ql
@@ -1,5 +1,5 @@
1
import go
2
3
from Type t
4
-where t.getPackage().getName().regexpMatch("main|pkg1|pkg2")
+where t.getPackage().getName() = ["main", "pkg1", "pkg2"]
5
select t.pp(), strictcount(t.getMethod(_))
go/ql/test/library-tests/semmle/go/Types/Methods.ql
from Type t, string m
select t.pp(), m, t.getMethod(m)
0 commit comments