Intro - LogeshVel/go_programs GitHub Wiki











Concurrency and Parallelism
Concurrency is the composition of independently executing processes, while parallelism is the simultaneous execution of (possibly related) computations.
Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once.




















Here the variable x is declared and intialized inside foo() function but it returns the pointer to that variable so eventhough it is stored in the stack memory this memory is not freed after the function call.













Default Switch. (Tagless) default is boolean type case



Array

Array Literal
[5]{1, 2, 3, 4, 5} - is the array literal


Slices
Uses backing array




Slice Literal


make

Hash Table




Maps




Struct





Files





