dataTypes-go

path: courses/go-course/dataTypes-go.md

- **fileName**: dataTypes-go
- **Created on**: 2024-08-23 21:28:28
Category Data Type Description Size
Basic Types bool Boolean type
int Signed integer type 32-bit or 64-bit
int8 Signed 8-bit integer 1 byte
int16 Signed 16-bit integer 2 bytes
int32 Signed 32-bit integer 4 bytes
int64 Signed 64-bit integer 8 bytes
uint Unsigned integer type 32-bit or 64-bit
uint8 Unsigned 8-bit integer 1 byte
uint16 Unsigned 16-bit integer 2 bytes
uint32 Unsigned 32-bit integer 4 bytes
uint64 Unsigned 64-bit integer 8 bytes
uintptr Unsigned integer used for pointer arithmetic 32-bit or 64-bit
float32 32-bit floating-point number 4 bytes
float64 64-bit floating-point number 8 bytes
complex64 Complex number with float32 real and imaginary parts 8 bytes
complex128 Complex number with float64 real and imaginary parts 16 bytes
String string Sequence of characters Variable length
Composite Types array Fixed-size sequence of elements of the same type
slice Dynamically-sized sequence of elements of the same type
struct Collection of fields, each with a name and type
map Unordered collection of key-value pairs
channel Communication mechanism between goroutines
Pointer Types *T Pointer to a value of type T
Function Types func Function signature

continue:[[]]
before:variable-ration.md