CodeQL library for Go
codeql/go-all 0.7.12 (changelog, source)
Search

Member predicate Expr::isConst

Holds if this expression is constant, that is, if its value is determined at compile-time.

predicate isConst()