Workiva/go-datastructures
View on GitHub ↗ ★ 7,966 Go
A collection of useful, performant, and threadsafe Go datastructures.
6 mentions on Hacker News by 5 people: 2 stories, 4 comments · first 2015-02-10 · latest 2017-12-05
20082026
-
…good libraries out there: - https://github.com/timtadh/data-structures ## I wrote this one. - https://github.com/Workiva/go-datastructures ## this one is also popular. - https://github.com/golang/go/wiki/Projects#data-structures ## big…
comment by timtadh · 2017-12-05 · in Why I love Go -
…variable with the lock. He's using a Mutex to synchronize access on the entire struct. snippet from https://github.com/Workiva/go-datastructures/blob/master/fut... f.lock.Lock() f.triggered = true f.item = item f.err = err f.lock.Unlock()…
comment by simonz05 · 2015-07-04 · in Golang data structures -
Something I've always wondered - in the futures packages ( https://github.com/Workiva/go-datastructures/blob/master/fut... ): The author has a variable `triggered` to check the state of whether or not the future is complete. Now to protect…
comment by nemothekid · 2015-07-04 · in Golang data structures -
…matter. We open sourced some data structures that show just how optimized we're trying to get ( https://github.com/Workiva/go-datastructures ), but in hindsight, Go might not have been the right tool for the problem.
comment by tylertreat · 2015-02-15 · in The State of Go