Files
codeql/go/ql/examples/snippets/calltofunction.ql
2022-05-20 10:07:19 -07:00

17 lines
324 B
Plaintext

/**
* @name Call to library function
* @description Finds calls to "fmt.Println".
* @id go/examples/calltoprintln
* @tags call
* function
* println
*/
import go
from Function println, DataFlow::CallNode call
where
println.hasQualifiedName("fmt", "Println") and
call = println.getACall()
select call