title: handling result if a field is null from database golang mysql
body: <p><a href="https://i.stack.imgur.com/S8WrV.png" rel="nofollow noreferrer">the result wanted</a>I have a struct in go </p>
  
  <pre><code>type Users struct {
      ID    int    `json:"id"`
      Name  string `json:"name"`
      Age   string `json:"age"`
  }
  </code></pre>
  
  <p>I have a mysql database in which some age values are nil so basically to make it dynamic I've been searching for the solution.   "Age string <code>json:-</code>" to hide the field if it is returnig the value nil from mysql.
  I did two queries </p>
  
  <pre><code>   query1: select id,name,age from users where age is not null
     query2: select id,name from users where age is null
  </code></pre>
  
  <p>How can I make it a dynamic query to show the age if exsits else it doesn't don't show it?</p>