You want a select reading from channels that are filled from the sockets in goroutines for each. Go by Example: Select
select