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