Packaging for basic data types:
1. Cross-platform for porting
2. Types of packaging for different frame types (MFC, win32sdk,c)
3. The assembled structure of the basic data type
4. Macro definition
Number Type
Go also has schema-based types, such as: int, uint, and uintptr.
| Serial Number |
Type and Description |
| 1 |
Uint8 Unsigned 8-bit integer (0 to 255) |
| 2 |
UInt16 Unsigned 16-bit integer (0 to 65535) |
| 3 |
UInt32 Unsigned 32-bit integer (0 to 4294967295) |
| 4 |
UInt64 Unsigned 64-bit integer (0 to 18446744073709551615) |
| 5 |
int8 Signed 8-bit integer (-128 to 127) |
| 6 |
Int16 Signed 16-bit integer (-32768 to 32767) |
| 7 |
Int32 Signed 32-bit integer (-2147483648 to 2147483647) |
| 8 |
Int64 Signed 64-bit integer (-9223372036854775808 to 9223372036854775807) |
Floating point type:
| Serial Number |
Type and Description |
| 1 |
Float32 IEEE-754 32-bit floating-point number |
| 2 |
Float64 IEEE-754 64-bit floating-point number |
| 3 |
Complex64 32-bit real and imaginary numbers |
| 4 |
complex128 64-bit real and imaginary numbers |
Go cross-platform number scrambling type