Richard Bucker

GOLANG concurrency and strings

Posted at — Jan 8, 2013

The concurrency examples I have been looking at have been passing around ints but I’m interested in different data types. So here is my example. It’s a simple hello world with a goroutine.This second example is slightly different and shows multiple messages… and they’re clearly serial.This last example demonstrates parallel execution with an aggregation of sorts.Here is the last example where the channel is a map’d item.And just when I thought I was done I had an idea to return a struct/interface in a channel.