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

Predicate getIntTypeBitSize

Get the size of int or uint in file, or architectureSpecificBitSize if it is architecture-specific.

Import path

import semmle.go.security.IncorrectIntegerConversionLib
int getIntTypeBitSize(File file, int architectureSpecificBitSize)