CodeQL library for Go
codeql/go-all 2.1.1-dev (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()