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

Class Package

A package.

Import path

import semmle.go.Packages

Direct supertypes

Predicates

getName

Gets the name of this package.

getPath

Gets the path of this package.

getPathWithoutMajorVersionSuffix

Gets the path of this package with the major version suffix (like “/v2”) removed.

getScope

Gets the scope of this package.

toString

Gets a textual representation of this element.