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

Predicate majorVersionSuffixRegex

Gets a regex that matches major version suffixes.

For example, this will match “/v2” followed by the end of the string or a “/” (but it won’t include the end of the string or the “/” in the match).

Import path

import semmle.go.Packages
string majorVersionSuffixRegex()