mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
324 B
Plaintext
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
|