If you're using channels a lot, you might want to have some helpers without being vendor locked into a framework. Same for me!
goryu
is not a library nor a framework, it's the confluence of my favorite helper functions leveraging generics in go
.
All credits goes to:
Every created channel needs a listener. Even if you create two channels at the same time on the same goroutine (main or else), you need two listeners (on main or else) that listen in order to please the compiler.
Here some good reading on channels:
- Go101 - Channel use cases
- Go101 - How to gracefully close channels
- Golangr - Channel direction
- Gopher Academy - Directional channels in
go
TODO: documentation and examples