All Questions
Tagged with go algorithms
4 questions
0
votes
1
answer
81
views
Pubsub model - publisher broadcast to remote subscribers
With a single publisher(go-routine) and multiple subscribers(go-routine) on same machine, below message hub help create pubsub model:
type PublisherHub struct {
subscribers map[*subscribmediator....
2
votes
1
answer
71
views
I have an unordered list of rectangles and their neighbors on four sides with no origin. How can I efficiently convert this into a grid?
I am writing a GtkGrid-like container for my GUI library for Go, and I'm trying to write the actual layout part of the code.
Basically, I have an unordered list of controls. Each control is a ...
3
votes
1
answer
4k
views
Container types in Golang
For a non-OOP language like google Go, is it idiomatic to go about implementing new container types using datatypes like arrays or lists so as to implement convenient functionality like contains ...
17
votes
3
answers
22k
views
Is Google's Go a type-safe language?
this page http://golang.org/doc/go_faq.html writes:
although Go has static types the
language attempts to make types feel
lighter weight than in typical OO
languages
So my question is exactly ...