Line 55 creates a new slice1 object every time you execute the body of the
loop. So it's always empty when you do the append(slice1, dataT). Try
moving it to line 37. I didn't closely examine your code but it looks like
there are other problems with it. For example, you don't use slice2 and the
Hello Gophers,
I created a TCP server that gets all the requests from the client and
replies, however, when I try to append those requests in a slice, *the next
request erases the previous one.*
*The server should get requests and continuously save them in a slice for
future manipulation.*