Intro - LogeshVel/go_programs Wiki

image

image

image

image

image

image

image

image

image

image

image


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.

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

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.

image

image

image

image

image

image

image

image

image

UTF

image

image

image

image

Default Switch. (Tagless) default is boolean type case

image

image

image

Array

image

Array Literal

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

image

image

Slices

Uses backing array

image

image

image

image

Slice Literal

image

image

make

image

Hash Table

image

image

image

image

Maps

image

image

image

image

Struct

image

image

image

image

image

Files

image

image

image

image

image

image