On Mon, 2022-04-25 at 05:42 -0700, peterGo wrote:
>
> Dan,
>
> For the second and subsequent lines,
>
> for _, line := range lines[1:] {
> line = bytes.TrimSpace(line)
> // ...
> }
>
> Did you consider being consistent and adopting that solution for the
> first line? For example,
>
> line0 := bytes.TrimSpace(lines[0])
> if string(line0) != encVersion1 {
> // . . .
> }
>
Yes, I did (and others), but felt the specific operation was both
clearer (particularly with the name used which explains what is being
looked at) and more correct.
Dan