Settings

Theme

Show HN: Gochan – A library of channel architectures for Go, inspired by Rust

github.com

5 points by andres 15 days ago · 0 comments · 1 min read

Reader

Hi All,

I felt like I was re-inventing the wheel by bolting similar channel architectures onto different Go structs repeatedly so I decided to extract some common types into into one library so that they would be easier to re-use:

  - oneshot
  - spsc
  - spmc
  - mpsc
  - mpmc
  - broadcast
  - watch
The types are inspired by Rust channels so if you're coming from Rust they should feel familiar. So far I'm really enjoying using them but it'd be great to get some external feedback if you have time!

https://github.com/amorey/gochan

Andres

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection