Why is the indentation different here, especially in (new) line 82 vs 83? This, plus the blank after os.Stat makes me think you are not using gofmt…?