Go Pointers
Pointers Pointer is a variable which contains address of another values stored address. Different values require different sizes of memory location, value is the boolean, but it still takes up a whole byte, that is because smallest representable amount of memory, and the other types takes up space their bit count divided by four; int32 -> 32 bits -> 4 bytes etc. Slices, maps, interfaces, channels, and functions are impelemented using pointers. It’s common to pass channel to some other function, and defines their purpose, hence it’s pointer by default. ...