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

Member predicate TypeParamDecl::getTypeConstraintExpr

Gets the expression representing the type constraint of the type parameters in this declaration.

If you want the type constraint type itself then use getTypeConstraint, as that wraps type set literals with implicit interface types.

Expr getTypeConstraintExpr()