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)
- Generator: function that returns a channel: generator.go
- Channels as a handle on service: channel_service.go
- Multiplexing/ fanIn: fan_in.go
- Restoring sequence: restoring_sequence.go send a channel on a channel, making goroutine wait it turn
- Fan-in function using
select
statement in go for channels: fan_in_using_select.go - Timeout using select: timeout_using_select.go
Using Mutex Examples
- 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: