golang 的问题是

if (max < row.length) {
    max = row.length;
}

这种很常见的写法,在 golang 里,因为少了个括号,变得不对齐了

if max < row.length {
    max = row.length
}