title: Golang Coding Conventions: When to Break Lines in Code?
body: <p>One of my favorite things about go is <code>gofmt</code>. I like the fact that the coding style is standardized in many ways. </p>
  
  <p>However there is one thing that bothers me still: line breaks. I found that if I look at my company's codebase, there is no evident consistency on the question of when to break lines. </p>
  
  <p>Looking at some of the code in the <code>stdlib</code>, for example, the <code>fmt</code> code <a href="https://github.com/golang/go/blob/master/src/fmt/format.go" rel="nofollow noreferrer">here</a>, I'm still not sure what's the convention (if it exists at all). </p>
  
  <p>For example, on <code>fmt_integer</code> function <a href="https://github.com/golang/go/blob/master/src/fmt/format.go#L194" rel="nofollow noreferrer">here</a>, there are line breaks after <code>if</code> statement bodies, but on <code>fmt_sbx</code> <a href="https://github.com/golang/go/blob/master/src/fmt/format.go#L332" rel="nofollow noreferrer">here</a> there aren't. </p>
  
  <p>Is there a convention for line breaks in golang? what's considered best practice? </p>