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

Primitive predicate date::getYear

Returns the year component of the receiver (for example 2017)

int getYear()