Very frequently it's beneficial to have multiple code paths executing simultaneously or interleaved. This can provide performance improvements, it can allow you to write clearer code, and it can be fun!
The chief way to allow concurrent execution in go is the go
keyword. Its use looks like a regular function invocation:
go fmt.Println("Hello World!")
This will asynchronously print "Hello World!"
at some point in the future, independent