23 May 2012 12:37
Re: Wierd behavior of bytes.Join
On 23 May 2012 11:07, Josef Johansson <josef86@...> wrote: > Is my code flawed or is this a bug? the former> lines = append(lines, line) here's your problem. the documentation for ReadLine says: "The returned buffer is only valid until the next call to ReadLine." but you're saving it for later in the lines slice. you could use ReadBytes or ReadString instead.
> lines = append(lines, line)
here's your problem.
the documentation for ReadLine says: "The returned buffer is only
valid until the next call to ReadLine." but you're saving it for later
in the lines slice.
you could use ReadBytes or ReadString instead.
RSS Feed