4 ms·
Show HN: Playing with Generics and atomics in Go 1.19
- tomaszsobota 4y agoThis is awesome! It took me a moment to figure out the loop in addConsumer but it's neat.
- bmcgee84 4y agoThanks. It's a pattern I saw in https://github.com/LMAX-Exchange/disruptor https://github.com/LMAX-Exchange/disruptor.
- lakomen 4y agoWhy put this under pkg, why this weird structure? The Readme doesn't say what it is, reading it on the phone.
- bmcgee84 4y agoI'm new to Go, still finding my way with the idioms. Since there's nothing internal and this is just a small library I can see how it's simpler to flatten the directory structure, which also seems to be how other libraries do it.