Slice append function in Go