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

Predicate lookThroughPointerType

Gets the base type if t is a pointer type, otherwise t itself.

Import path

import semmle.go.Types
Type lookThroughPointerType(Type t)