title: Golang JSON tags
body: <p>Suppose I have a struct <code>Foo</code>.</p>
  
  <pre><code>Foo struct {
          Bar, Baz int
  }
  </code></pre>
  
  <p>And I want to marshal this struct into <code>json</code> like so:
  <code>{bar : 1, baz : 2}</code></p>
  
  <p>How could I achieve that, without splitting my single line multiple name declaration (<code>Bar, Baz int</code>) into 2 separate lines using tags.</p>
  
  <p>This works:</p>
  
  <blockquote>
  <pre><code>Foo struct {
          Bar int `json:"bar"`
          Baz int `json:"baz"`
  }
  </code></pre>
  </blockquote>
  
  <p>But I'd like:</p>
  
  <blockquote>
  <pre><code>Foo struct {
          Bar, Baz int `json:???`
  }
  </code></pre>
  </blockquote>
  
  <p>Is the latter even possible?</p>