On Monday, April 25, 2022 at 2:12:35 AM UTC-4 kortschak wrote:

> I have sent https://go-review.googlesource.com/c/go/+/402074 to address 
> this. 
>
>  
 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 {
    // . . .
}

Peter

Dan 
>  

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0ce71b8c-993d-4b22-8aa3-e3422980eb79n%40googlegroups.com.

Reply via email to