Write data structure in Go lang