INTEGER

A Go type is not generated for an ASN.1 INTEGER type unless the INTEGER type has constraints. Even in this case, the generated type is for documentation purposes only - the generated encode and decode function still use built-in Go types. Only Go 64-bit integer types are used to make conversions simpler. The Go type for an unconstrained integer is int64. If the ASN.1 type is constrained to nonnegative values, type uint64 is used.

If the INTEGER type contains a list of named numbers, Go constants are generated for each number, the same as is done for the ASN.1 ENUMERATED type.