Other Issues

Other resources
Mutex or Channel
How to know TCP connection is closed?
Some example on mutex and runtime.Gosched 

 simpler chat server and client in golang
Golang Away: TCP Chat Server
  TCP Echo Server in Golang

 package main

import (

func main() {

func Default() {
    go somefunc()

func A() {
    go somefunc()

func B() {
    ch := make(chan struct{})
    go func() {

func C() {
    mu := &sync.Mutex{}
    go func() {

func somefunc() {

Golang pointers

GoLang: init function for Structs

Idiom for modifying value of a list element? https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/JG5TMxj_u74

golang pointers on pointers as function parameters

Memory, variables in memory, and pointers http://golangtutorials.blogspot.com/2011/06/memory-variables-in-memory-and-pointers.html