package
0.0.0-20240628090047-e7e75416fc67
Repository: https://github.com/sethiyash/golang.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Concurrency

Look into concurrency pattern codes in following order -

Taken from - https://youtu.be/f6kdp27TYZs?t=866 (Go Concurrency Patterns Rob Pike)

  1. Generator: function that returns a channel: generator.go
  2. Channels as a handle on service: channel_service.go
  3. Multiplexing/ fanIn: fan_in.go
  4. Restoring sequence: restoring_sequence.go send a channel on a channel, making goroutine wait it turn
  5. Fan-in function using select statement in go for channels: fan_in_using_select.go
  6. Timeout using select: timeout_using_select.go

Using Mutex Examples

  1. Getting rid of Data race condition while doing read/write on shared data using mutex: data_race_mutex.go

Good Reads

Why Go Programming:

Scheduling in Go: