Prepending like this is pretty inefficient. Every append will involve resizing a length 1 slice to a length `len(a)+1` slice.

Why not range from `start` to `stop` and just append to `a`?

There may be more efficiency as well by using `byte.Buffer` and `fmt.Fprintln`. You'd probably want to benchmark before going that route.