title: Different names of JSON property during serialization and deserialization in golang
body: <p>Is it possible: to have one field in the struct, but different names for it during serialization/deserialization in Golang?</p>
  <p>For example, I have the struct &quot;Coordinates&quot;.</p>
  <pre><code>type Coordinates struct {
    red int
  }
  </code></pre>
  <p>For deserialization from JSON want to have a format like this:</p>
  <pre><code>{
    &quot;red&quot;:12
  }
  </code></pre>
  <p>But when I will serialize the struct, the result should be like this one:</p>
  <pre><code>{
    &quot;r&quot;:12
  }
  </code></pre>