title: Convert bool to tinyint golang
body: <p>I am using the latest version of xorm and want to create a simple go struct as follows:</p>
  
  <pre><code>types myStruct struct {
      isDeleted bool `xorm:"'isDeleted' tinyint(3)"`
  }
  </code></pre>
  
  <p>I know the bool type in go evaluates to true and false, but I need to map it to a mySql database where the values are tinyint(3) and 1 maps to true and 0 to false. In the example above no matter what my post requests look like isDeleted always evaluates to 0. Thanks in advance for any advice on this issue. This <a href="https://github.com/go-xorm/xorm/issues/673" rel="nofollow noreferrer">https://github.com/go-xorm/xorm/issues/673</a> may provide some context. </p>